• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • 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
Cloud Class® Course: Certified Penetration Testing

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

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