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

  • From: trhouse < >
  • To:
  • Subject: [nbusers] Re: fail to run java desktop application out side IDE
  • Date: Mon, 05 Nov 2012 06:12:45 -0500

If you have the resources, this book comes highly rated for beginning Java developers. I have not read it , just perused it in bookshops out of curiosity but it looked well done. Depending on where you are in the world, you can get it at a reasonable price:
http://www.valorebooks.com/CustomerService.ContactSeller.PurchaseQueryFrame.do?sellerMarket_id=973009143&product_id=22051558&a_listing=false

and if that's too rich for your budget :) then this books is also just as highly regarded but not as comprehensive

http://www.amazon.com/Head-First-Java-ebook/dp/B009KCUX3S/ref=la_B001H6U55G_1_2?s=books&ie=UTF8&qid=1352113360&sr=1-2

which also may be available in an international edition and reduced price.

Also www.javaranch.com advertises itself as a friendly place for java beginners and I can testify to that. Most of us are beginners in some aspect of Java we haven't had any reason to use at some time or another and I end up there on a regular basis.

Oracle of course has the java tutorials online .

There's a start.

Your basic problem is, even though Netbeans makes it easy to create a working java application by hiding a lot of the grunt work, you still have to know at least some of what that grunt work did for you so can fix it when you need to. Programming has not really evolved to the point that anyone with an idea and no real knowledge of stuff like languages, compilers, paths, environments etc etc etc can do it and succeed in developing an arbitrary, robust, and useful program. That's just a fact about the state of the art of programming for now and the foreseeable future.

HTH.

On 11/5/2012 3:59 AM, Stadelmann Josef wrote:
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