初学JAVA,问题多多。。。(100分)

P

peasant

Unregistered / Unconfirmed
GUEST, unregistred user!
1.我打开了IE中的"启用java编译器"选项,但是仍然不能浏览java效果及功能。
2.用VJ++编程时,编译可以通过,但是执行时有如下异常警告:
An exception of type 'java.lang.NoClassDefFoundError' was not handled.
Would you like to debug the application?
3.用VJ++编写控制台程序时,出现错误: java.lang.UnsatisfiedLinkError: java/lang/Character.getData Possible causes: If you are trying to use J/Direct (@dll.import), check your compiler version (for JVC, requires 4336 or greater.) If you are trying to use RNI, there are new requirements: seedo
cumentation.
请问以上错误如何解除?
 
Do not use VJ++ because itdo
es not Pure JAVA. Try JBuilder 3
which is another wonderful product of Borland/Inprise. Anddo

not use any component other thana SUN's.
 
use jbuilder
 
'java.lang.NoClassDefFoundError' 表示找不到CLASS文件,你看看是否路径正确。
其他就不知道了。
 
用jdk吧, 绝对的纯种。
 
1.取下载sun的jre.
2.没用过vj++.
 
IE和NETSCAPE好象用的是1.1.6的JAVA JDK。所以如果用的JAVA开发平台太新,
就不能用了。
用JBUILDER的话也应该注意版本问题。JBUILDER 3.0用的是1.2 JDK。解决方法就是
竟可能在AWT的基础上开发。
至于'java.lang.NoClassDefFoundError',是因为你没有把某个CLASS文件放到相
应目录的原因,或者你可以用deployment wizard打个包。
 
各位大侠:
我是用 JDK 1.2.2
今天也遇见同一问题?
Help me!!
 
classpath 路径怎么设置?
该指向哪里?
 
itdo
esn't matter what u put 4 classpath.
however, i recommand u to set it same as source path, coz by this means, ur class files and html will be under the same path. or, at least u should set it as a subdirectory of source path. it will be much more convenient if u set the class path like this way.
 
我把 classpath 环境变量置为空
则 用 jdk1.2.2 运行成功
peasant 不妨一试
 
经常遇到这样的问题:“'{'expected”,提示位置在根本不需要的行中,
真是没办法 。HELP ME!
 
paste ur code here. otherwise, how can we know where the mistake is?
 
用jdk中的jar把.class文件打包。注意,必要时可能在每个.java源文件上加package ?? 进行封装。
 
JBuild自带的服务器好象不支持中文。
 
For question 1:
Neither IE or Netscape support Java2 (above jdk1.2). if you use features in Java2, you can use java-plugin in the browser end (I recommand this way).
 
classpath最好设成 .
 
经常遇到在用JDK1.2编译时,当用javac编译后,用java执行时出错——
java.lang.NoClassDefFoundError: Chart(执行程序名)/class
Exception in thread "main"
用appletviewer浏览插入后的网页,又是正常的。
而有时候,对于其它程序,又没有任何报错,不知为何,请帮忙。
shipowner@263.net
 
多人接受答案了。
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
556
import
I
I
回复
0
查看
2K
import
I
I
回复
0
查看
1K
import
I
顶部