• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Java Compilation error

 
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic