Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

Moving application to console

Hi,

I coded my app in Netbeans GUI where it created for me dirs like: build , dist, nbproject, src, test..
I can compile and run it easily using the program. Its properties has 3 libraries like
swing layout, absolute layout and mysqlconnector

Now i need this program to run in console, means copying to another machine, compiling it
and running it console.

What should i do to ensure the libraries are working and the program can run..

i copy the whole program over and what do i do?
0
jedistar
Asked:
jedistar
  • 3
  • 3
1 Solution
 
CEHJCommented:
I don't use Netbeans, but you need to export the project to an archive in principle.
0
 
jedistarAuthor Commented:
please describe, thanks
0
 
hoomanvCommented:
in the below link read the answers to these 2 Qs
 How to run and distribute my GUI application created in NetBeans?
 How can I package the swing-layout-version.jar library into my application JAR?

http://www.netbeans.org/kb/faqs/gui-editor.html
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
jedistarAuthor Commented:
mysql?
0
 
hoomanvCommented:
deploy your app with mysql.connector/j jar file bundled
however connector/mxj has been made for this purpose I think
http://dev.mysql.com/downloads/connector/mxj/1.1.html
0
 
jedistarAuthor Commented:
the connector i put in a dir called \drivers

so what do i type in console to compile and run my netbean applications
0
 
hoomanvCommented:
for example

set CLASSPATH=C:\Program Files\Java\jre1.5.0_01\lib\ext\mysql-connector-java-3.1.12-bin.jar

compile:
    javac YourClass.java etc ...

run:
    java YourMainClass
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now