-
March 27th, 2011, 10:35 AM
#1
Run Netbeans project from command line
I've made java desktop application,swing gui in netbeans and it works in netbeans but I have 2 problems:
1. I cant export working jar or class files
2. I need to run and build it from cmd line in windows xp
I guess that I need to include something in classpath...
when I run dist\app.jar it gives me "cannot find main class" and it's there in manifest file,i opened it and saw it
I've included libraries in dist\lib folder in build
my enviroment is ok,because all other "java program" work,only the programs with swing gui's made in designers in netbeans or eclipse wont work
offcourse app is running when I press run in netbeans
here is classpath debugged in netbeans:
C:\Program Files\NetBeans 6.9.1\java\modules\ext\appframework-1.0.3.jar;
C:\Program Files\NetBeans 6.9.1\java\modules\ext\swing-worker-1.1.jar;
C:\Program Files\NetBeans 6.9.1\java\modules\ext\beansbinding-1.2.1.jar;
C:\Documents and Settings\moje ime\Desktop\DesktopApplication1\build\classes;
C:\Documents and Settings\moje ime\Desktop\DesktopApplication1\src
here is netbeans project http://uppit.com/vig6cthngome/DesktopApplication1.rar
-
March 27th, 2011, 04:05 PM
#2
Re: Run Netbeans project from command line
-
March 31st, 2011, 10:39 AM
#3
Re: Run Netbeans project from command line
Try the Netbeans forums.
They know enough who know how to learn...
J. Adams
Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|