Solved

Exporting gui applicaton source code from net beans

Posted on 2009-06-27
17
692 Views
Last Modified: 2012-06-22
Is there a way to export netbeans gui applictions? I want to be applet to modify and compile the code later without having to use netbeans.
0
Comment
Question by:codecaine
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 7
17 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 24729029
Netbeans is founded on Ant so all you need is Ant, and the source
0
 
LVL 17

Expert Comment

by:Thomas4019
ID: 24729047
If you navigate to where you project file is stored, you should find a folder called with all the source java files. You could copy them out of there, you might need to fix the package structure but it should work.
0
 
LVL 1

Author Comment

by:codecaine
ID: 24729048
Can you give me a example of how it works, and the link to get it?
0
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!

 
LVL 86

Expert Comment

by:CEHJ
ID: 24729057
You should only need to do something like

ant compile

at the command line
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24729063
if you do something like the below, it will tell you what Ant targets are available:


ant -p -f /home/goose/NetBeansProjects/General/build.xml

Open in new window

0
 
LVL 1

Author Comment

by:codecaine
ID: 24729088
Thanks I think its broke on make OS X for now becuase of the java update.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24729112
>>Thanks I think its broke on make OS X for now becuase of the java update.

I don't understand... It won't be broken or Netbeans wouldn't work. The worst that can happen is that ant is not in your path, in which case:

which ant

would return nothing. You can always put it in your path of course
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24729142
Why are you closing the question?
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24729157
No answer to my question ...
0
 
LVL 1

Author Comment

by:codecaine
ID: 24729163
I didn't mean to close it. When I try to compile a netbeans source with ant on mac I recieve this.

codecaine-macbook-2:JavaApplication3 jeromescott$ ant -p -f build.xml
Buildfile: build.xml
/Users/jeromescott/Desktop/JavaApplication3/build.xml:12: The following error occurred while executing this line:
/Users/jeromescott/Desktop/JavaApplication3/nbproject/build-impl.xml:23: Please build using Ant 1.7.1 or higher.
0
 
LVL 1

Author Comment

by:codecaine
ID: 24729170
I ran ant -version and it is 1.7.1
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24729182
You need to update the *other* ant you have (the one in $PATH) to at least the same version as the one in Netbeans
0
 
LVL 1

Author Comment

by:codecaine
ID: 24729218
I only have one version on the system and it is updated.
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24729225
What is line 23 of build-impl.xml btw?
0
 
LVL 1

Author Comment

by:codecaine
ID: 24729249
<fail message="Please build using Ant 1.7.1 or higher.">
0
 
LVL 1

Author Comment

by:codecaine
ID: 24729261
I deleted that condition line and now get this

codecaine-macbook-2:JavaApplication3 jeromescott$ ant -p -f build.xml
Buildfile: build.xml
Builds, tests, and runs the project JavaApplication3.
Main targets:

 JavaApplication3-impl.clean        Clean build products.
 JavaApplication3-impl.compile      Compile project.
 JavaApplication3-impl.debug        Debug project in IDE.
 JavaApplication3-impl.default      Build and test whole project.
 JavaApplication3-impl.jar          Build JAR.
 JavaApplication3-impl.javadoc      Build Javadoc.
 JavaApplication3-impl.run          Run a main class.
 JavaApplication3-impl.test         Run unit tests.
 JavaApplication3-impl.test-single  Run single unit test.
 clean                              Clean build products.
 compile                            Compile project.
 debug                              Debug project in IDE.
 default                            Build and test whole project.
 jar                                Build JAR.
 javadoc                            Build Javadoc.
 run                                Run a main class.
 test                               Run unit tests.
 test-single                        Run single unit test.
Default target: default
0
 
LVL 86

Expert Comment

by:CEHJ
ID: 24729275
>>I deleted that condition line and now get this

That's fine - just info
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question