Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to convert commandline source to a project for Netbeans

OTG-467455Nov 15 2017 — edited Nov 16 2017

I tried my hand at java coding using the command line and word pad.  Then I started Netbeans as I want to convert the java sources to a Netbeans project.  Looked at import and a few other functions.  Did not find any glaringly obvious method to achieve this.

How do I convert the code developed outside of Netbeans using the command line approach to a Netbeans project and vice-versa?

This post has been answered by mNem on Nov 16 2017
Jump to Answer

Comments

mNem
Answer

You may want to try the following ...

1. From existing source to netbeans project ...

Create a new project from

File > New Project >

1. Java > Java Project with Existing Sources >

Fill in Name and Location >

Next >

Add Source Folder (your existing source location) > ...

Finish.

of course, this just brings in the source files. You still need to do the rest of the project setup such as

1. where to find the libraries,

2. build path - location of the compiled .class files and so on.

Marked as Answer by OTG-467455 · Sep 27 2020
mNem

You are welcome.

I guess we just need to find ways to get the best out of what is available to us.

OTG-467455

Sorry mNem, I did not check before posting the reply.  It was meant for the other question you responded to. I have now deleted it.  I am going to try your suggestion.

OTG-467455

mNem, thanks, it works like a dream.   First made a few mistakes then got it right.

1 - 4

Post Details

Added on Nov 15 2017
4 comments
95 views