CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Feb 2010
    Posts
    112

    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

  2. #2
    Join Date
    Feb 2010
    Posts
    112

    Re: Run Netbeans project from command line

    no one?

  3. #3
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    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
  •  





Click Here to Expand Forum to Full Width

Featured