← Desenvolvimento

Instalar 1 scipt em java

Lida 1677 vezes

Offline

miguelcardoso 
Membro
Mensagens 736 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

Ola, precisava de instalar 1 script em java para ver jogos de xadrez o site do script é este:
http://www.stonkie.com/en/pgnreader/index.html

Tentei testar aqui : http://www.filmesnovos.biz/teste/

O resultado é o belo do erro ao carregar o ficheiro java

O código fonte que utilizei foi este:

Código: [Seleccione]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

  <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
  <title>Teste</title>


</head>


<body>

Site de teste<br>

<applet code="VisualInterface.class" height="480" width="700">
<applet code="VisualInterface.class" height="480" width="700"><param name="PGN" value="http://filmesnovos.biz/teste/migpgn.pgn">
</applet></applet>
</body>
</html>

O erro é este:
Código: [Seleccione]
Java Plug-in 1.6.0_05
Using JRE version 1.6.0_05 Java HotSpot(TM) Client VM
User home directory = F:\Documents and Settings\Xadrez


----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
p:   reload proxy configuration
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

load: class VisualInterface.class not found.
java.lang.ClassNotFoundException: VisualInterface.class
at sun.applet.AppletClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.applet.AppletClassLoader.loadCode(Unknown Source)
at sun.applet.AppletPanel.createApplet(Unknown Source)
at sun.plugin.AppletViewer.createApplet(Unknown Source)
at sun.applet.AppletPanel.runLoader(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Preciso criar o ficheiro .class?

Alguem sabe o que estou a fazer mal?  :obrigado:

Offline

Santo 
Membro
Mensagens 1657 Gostos 4
Troféus totais: 31
Trófeus: (Ver todos)
Windows User Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2

O ficheiro class tem de existir sim. Existe também uma forma de carregar um ficheiro jar mas não me recordo agora qual os parametros a usar.

Saudações
Offline

ricardor 
Membro
Mensagens 224 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1

Sim, precisas do ficheiro .class
Offline

miguelcardoso 
Membro
Mensagens 736 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Super Combination Combination Topic Starter 10 Poll Votes Poll Voter Poll Starter Level 5 Level 4 Level 3 Level 2

algum tutorial para fazer isso?