Win a copy of Microservices Testing (Live Project) this week in the Spring forum!
  • 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:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

JDK 2

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to use the jdk 2. I can succesfully compile source files but get the following error when I attempt to execute the class file.
C:\java>java Jxam
Exception in thread "main" java.lang.NoClassDefFoundError: Jxam
I changed my autoexec file as follows:
C:\>PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRAM FILES\MTS;C:\JDK1.3\BIN;"C:\Pr
ogram Files\Mts";C:\JDK1.3\BIN
Too many parameters
Is this the problem? please help, thanks

------------------
 
Ranch Hand
Posts: 64
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi-
If the Jxam file is the one I am thinking it is, which is Jxam.zip, thenyou need to use the following on the command prompt:
java -jar Jxam.zip
the java compiler will only look for .class files, if the files are combined in a jar or zip file format, you need to use this command.
Kyle
 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

C:\>PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\PROGRAM FILES\MTS;C:\JDK1.3\BIN;"C:\Pr
ogram Files\Mts";C:\JDK1.3\BIN
Too many parameters


You seem to have the MTS directory listed twice. The second reference is correct: the space in the path requires quotes be placed around the path. The first reference is incorrect, though. The command line interpreter thinks the space indicates a second parameter, which is invalid for the SET PATH command, and thus generates your error.
 
reply
    Bookmark Topic Watch Topic
  • New Topic