Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
03-25-2005, 03:12 PM
|
#1
|
Member
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729
Rep:
|
Problem with net beans
I am trying to use net beans however I can not compile anything.
I have tried to configure it but I can not find how to add the compiler information to properties.
Any ideas ? It could be just be tiredness.
Do I need anything else other than Java (I have 1.5.0 installed).
Thanks in advance for the help.
David
|
|
|
03-26-2005, 05:17 AM
|
#2
|
Moderator
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,794
|
What are the symptoms ?
What have you installed (versions) ?
|
|
|
03-26-2005, 06:33 AM
|
#3
|
Member
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177
Rep:
|
To check whether your Java version is used properly do: Tools > Java Platform Manager.
This should show which SDK is installed. If none showing then hit the "Add platform" button and add your Java installation.
NetBeans should run/compile OK if this is set right.
Edit: It is the SDK you installed not just the JRE?
Last edited by prj; 03-26-2005 at 06:35 AM.
|
|
|
03-26-2005, 10:27 AM
|
#4
|
Member
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729
Original Poster
Rep:
|
In tools platform I have :-
/usr/local/jdk1.5.0_02/jre/lib/rt.jar
/usr/local/jdk1.5.0_02/jre/lib/i18n.jar
/usr/local/jdk1.5.0_02/jre/lib/sunrsasign.jar
/usr/local/jdk1.5.0_02/jre/lib/jsse.jar
/usr/local/jdk1.5.0_02/jre/lib/jce.jar
/usr/local/jdk1.5.0_02/jre/lib/charsets.jar
/usr/local/jdk1.5.0_02/jre/classes
/usr/local/jdk1.5.0_02/jre/lib/ext/sunjce_provider.jar
/usr/local/jdk1.5.0_02/jre/lib/ext/sunpkcs11.jar
/usr/local/jdk1.5.0_02/jre/lib/ext/dnsns.jar
/usr/local/jdk1.5.0_02/jre/lib/ext/localedata.jar
There is nothing else that is right isn't it ?
I have installed Java 2 Platform Standard Edition 5.0 that is right isn't it ?
|
|
|
03-26-2005, 01:55 PM
|
#5
|
Member
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177
Rep:
|
That looks right for the NetBeans setup - same java files as mine at least barring the minor version number but that shouldn't make a difference. Mine are actually installed in /opt but again this shouldn't make a difference.
What errors exactly are you getting, say for a little "Hello World" program?
Last edited by prj; 03-26-2005 at 01:58 PM.
|
|
|
03-26-2005, 02:03 PM
|
#6
|
Member
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177
Rep:
|
Something that might help is in the Help section.
Help > Help Contents > IDE Basics > Working with Projects > Setting the Target JDK
|
|
|
03-26-2005, 02:06 PM
|
#7
|
Member
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729
Original Poster
Rep:
|
Sorry when I say I can not compile I mean that the option is greyed out under build.
I have looked at the help files to see what to do to fix this but I can not see them.
|
|
|
03-26-2005, 02:10 PM
|
#8
|
Member
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729
Original Poster
Rep:
|
Quote:
Originally posted by prj
Something that might help is in the Help section.
Help > Help Contents > IDE Basics > Working with Projects > Setting the Target JDK
|
But the JDK is set up at least as far as I can see.
|
|
|
03-26-2005, 02:47 PM
|
#9
|
Member
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177
Rep:
|
Just had a little thought - Is your app set as the main project in NetBeans.
Should show in bold on the file or project lists - the program that is run or compiled by the buttons at the top are only the main project.
To set a project as main - right click on project name in project window and then click Set Main Project.
To compile individual files from any project, right click on a source file and select Compile, or left click then F9.
|
|
|
03-26-2005, 02:51 PM
|
#10
|
Member
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177
Rep:
|
A further thought, going back to jlliagre's questions
Quote:
Originally posted by jlliagre
What are the symptoms ?
What have you installed (versions) ?
|
Which version of NetBeans are you running?
|
|
|
03-26-2005, 03:04 PM
|
#11
|
Member
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729
Original Poster
Rep:
|
I have Java 1.5.0 and net beans 4.0.
I think I have the SDK installed, how do I check ?
|
|
|
03-26-2005, 03:12 PM
|
#12
|
Member
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729
Original Poster
Rep:
|
I tried to create a new project as opposed to opening a pre existing .java file and it set up the classpaths and now it works !!!!
Thanks to both of you for your help.
I can not believe that you have to create a project to get the paths okay !!!
You are not any good with printers are you :-
http://www.linuxquestions.org/questi...hreadid=305641
|
|
|
03-26-2005, 05:46 PM
|
#13
|
Member
Registered: Aug 2003
Location: South Wales
Distribution: Kubuntu, Ubuntu server, SuSE 11, Knoppix, Puppy, Myth. Oh alright then, all of them
Posts: 177
Rep:
|
NetBeans is all project based now as far as I can tell - a bit different from how 3.6 and back where you could get away with "loose" files.
Not so good at printers I'm afraid, gave up on Linux print drivers and reverted my old P166 to a W2K print server 
|
|
|
All times are GMT -5. The time now is 03:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|