Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Compilation error  RSS feed

 
Chandhrasekar Saravanan
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,
I am using Insignia Jeode JVM to run my java application. Jeode Jvm is compatible with jdk1.1.
In my application I am using java.net.Authenticator class, which is availaible only in jdk1.2.
I have compiled in my Linux machine using
javac -target BasicReader.java
and this works fine in the linux machine which has jdk1.4 in it.
But when i transfer the .class file to Jeode and when i try to run the evm BasicReader i am getting the following error.
Exception in thread "main", java.lang.NoClassDefFoundError: java/net/Authenticator at BasicReader.main(bytecode 0)
could you please explain me why this happens and how to rectify it.
 
rom chatterjee
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The jvm with support for java 1.1 has no knowledge of the bytecode compiled on your linux machine which included stuff in java 1.2. I would suggest upgrading your jvm on the target machine.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!