[nbusers] Could not find the main class

  • From: "Mack06" < >
  • To:
  • Subject: [nbusers] Could not find the main class
  • Date: Thu, 02 May 2013 12:31:41 -0400


kmzimmer wrote:
> Mack,
> I have no environment variable set on my Windows 7 machine. My manifest 
> file contains. 
> 
> Manifest-Version: 1.0
> X-COMMENT: Main-Class will be added automatically by build
> 


Look at the MANIFEST.MF in the JAR file, not the one in the project 
directory. It is in the META-INF folder in the JAR file. 



kmzimmer wrote:
> 
> I did find on the machine that I"m not working on has a CLASSPATH set to 
> 
> 
> .;C:\Program Files\Java\jre6\lib\ext\QTJava.zip
> 


That is fine, it has a leading dot that tells java to use the current 
directory from the command line. 


kmzimmer wrote:
> 
> So Should I add an environment variabe named CLASSPATH with the same as 
> above, reboot and try again?
> 


You shouldn't need a CLASSPATH if you don't already have one, it's just that 
if you do have one, it should have the dot directory like shown above. 

Do you have the right JDK bin in your path? It should be set to something 
like C:\Program Files\Java\jdk1.7.0_17\bin and pointed to the right Java 
version. You normally make a JAVA_HOME variable and then put like 
%JAVA_HOME%\bin\ in your path so you can just change JAVA_HOME to point to 
another JDK without editing the bath. Just don't put the \bin\ part in the 
JAVA_HOME variable.

\>java -version tells you what version you are seeing from the command line.






[nbusers] Could not find the main class

kmzimmer 04/30/2013

[nbusers] Could not find the main class

kmzimmer 05/01/2013

[nbusers] Could not find the main class

Mack06 05/02/2013

[nbusers] Could not find the main class

Mack06 05/02/2013

[nbusers] Could not find the main class

kmzimmer 05/02/2013

[nbusers] Could not find the main class

Mack06 05/02/2013

[nbusers] Could not find the main class

kmzimmer 05/02/2013

[nbusers] Could not find the main class

Mack06 05/02/2013

[nbusers] Could not find the main class

Mack06 05/02/2013

[nbusers] Could not find the main class

Mack06 05/02/2013

[nbusers] Could not find the main class

kmzimmer 05/02/2013

[nbusers] Could not find the main class

kmzimmer 05/02/2013

[nbusers] Could not find the main class

kmzimmer 05/02/2013

[nbusers] Could not find the main class

kmzimmer 05/02/2013

[nbusers] Could not find the main class

Mack06 05/03/2013

[nbusers] Could not find the main class

kmzimmer 05/06/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close