LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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


Reply
  Search this Thread
Old 03-25-2005, 03:12 PM   #1
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Rep: Reputation: 32
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
 
Old 03-26-2005, 05:17 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,794

Rep: Reputation: 496Reputation: 496Reputation: 496Reputation: 496Reputation: 496
What are the symptoms ?
What have you installed (versions) ?
 
Old 03-26-2005, 06:33 AM   #3
prj
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: Reputation: 30
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.
 
Old 03-26-2005, 10:27 AM   #4
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
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 ?
 
Old 03-26-2005, 01:55 PM   #5
prj
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: Reputation: 30
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.
 
Old 03-26-2005, 02:03 PM   #6
prj
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: Reputation: 30
Something that might help is in the Help section.

Help > Help Contents > IDE Basics > Working with Projects > Setting the Target JDK
 
Old 03-26-2005, 02:06 PM   #7
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
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.
 
Old 03-26-2005, 02:10 PM   #8
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
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.
 
Old 03-26-2005, 02:47 PM   #9
prj
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: Reputation: 30
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.
 
Old 03-26-2005, 02:51 PM   #10
prj
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: Reputation: 30
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?
 
Old 03-26-2005, 03:04 PM   #11
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
I have Java 1.5.0 and net beans 4.0.
I think I have the SDK installed, how do I check ?
 
Old 03-26-2005, 03:12 PM   #12
davholla
Member
 
Registered: Jun 2003
Location: London
Distribution: Linux Mint 13 Maya
Posts: 729

Original Poster
Rep: Reputation: 32
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
 
Old 03-26-2005, 05:46 PM   #13
prj
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: Reputation: 30
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JBoss: no concurrent calls on stateful beans eantoranz Programming 0 03-11-2005 12:43 PM
EJB: Problem when creating entity beans eantoranz Programming 1 03-08-2005 08:58 AM
jboss session beans pool settings eantoranz Linux - Software 0 04-11-2004 02:50 PM
idea: sharing net connection, method: iptables..., problem: broken net connection :( danny2055 Linux - Networking 4 06-09-2003 07:00 AM
how to cook beans acid_kewpie General 3 12-28-2002 05:09 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration