[nbusers] Re: fail to run java desktop application out side IDE

  • From: "Stadelmann Josef" < >
  • To: < >
  • Subject: [nbusers] Re: fail to run java desktop application out side IDE
  • Date: Mon, 5 Nov 2012 09:59:30 +0100

Forget about the IDE NetBeans for a while, you will need it later.

Get a good JAVA Book for learning, buy one or get to learn JAVA from the 
Internet; 
Execute a few JAVA examples without the support of a IDE; 
This only unless you can write a small java example using a ASCII editor i.e. 
NotePad.exe;
Use the JAVAC compiler to compile your i.e. xyz.java file; 
Use JAVA to launch the JVM and have it execute your xyz.class bytecode; 

Then enhance your abc.java example and include an #import statement to a 
class external to your example; 
JAVAC ompile it and packaged it with JAR into a abc123.jar file; 
Use the JAR -tf switch to see the content of your abc123.jar file;
have this abc123.jar file placed somewhere on a path, but not within your 
path where xyz.java is.
If you then learned how to manage your -classpath -cp switch in the JAVA 
launch command 
you are over the hill and you then know much better what you actually do. 

Then you can take your IDE NetBeans example and do the same correctly just 
using the JAVA command.

If it starts properly, then you can go back to the marvelous NetBeans IDE.

Always remember, there is no free lunch . . .

It's all about writing Java code, compiling it JAVAC, package it properly, 
JAR, and use it from JAVA.

Josef

-----Urspr√ľngliche Nachricht-----
Von: SARAFARAJ 
[mailto: ]
 
Gesendet: Samstag, 3. November 2012 16:19
An: 

Betreff: [nbusers] fail to run java desktop application out side IDE

Dear Sir

I am developing java desktop application for windows 7, Using GUI tool of net 
bean. It work properly in IDE, but when i am trying to run it outside it 
gives error as" could not found or load main class 
c:\users\..........\uartcomm", here uartcomm is my project name. I am using 
RXTX lib for my application.

please help me






[nbusers] fail to run java desktop application out side IDE

SARAFARAJ 11/03/2012

[nbusers] Re: fail to run java desktop application out side IDE

Stadelmann Josef 11/05/2012

[nbusers] Re: fail to run java desktop application out side IDE

trhouse 11/05/2012

[nbusers] fail to run java desktop application out side IDE

SARAFARAJ 11/08/2012

[nbusers] Re: fail to run java desktop application out side IDE

Javier Ortiz 11/08/2012

[nbusers] Re: fail to run java desktop application out side IDE

Andreas Ernst 11/08/2012

[nbusers] Re: fail to run java desktop application out side IDE

Bayless Kirtley 11/08/2012

[nbusers] Re: fail to run java desktop application out side IDE

Benno Markiewicz 11/08/2012

[nbusers] fail to run java desktop application out side IDE

SARAFARAJ 11/12/2012

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 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close