LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 09-09-2006, 08:06 AM   #1
Veteq
Member
 
Registered: Feb 2004
Posts: 155

Rep: Reputation: 30
Netbeans and Javac path problems


I just installed the linux version of netbeans (been using the windows version at work) and for some reason I cannot compile.

this is the error I get

Quote:
init:
deps-jar:
Compiling 11 source files to /SAT-SignIn/build/classes
javac: invalid target release: 1.5
Usage: javac <options> <source files>
where possible options include:
-g Generate all debugging info
-g:none Generate no debugging info
-g:{lines,vars,source} Generate only some debugging info
-nowarn Generate no warnings
-verbose Output messages about what the compiler is doing
-deprecation Output source locations where deprecated APIs are used
-classpath <path> Specify where to find user class files
-sourcepath <path> Specify where to find input source files
-bootclasspath <path> Override location of bootstrap class files
-extdirs <dirs> Override location of installed extensions
-d <directory> Specify where to place generated class files
-encoding <encoding> Specify character encoding used by source files
-source <release> Provide source compatibility with specified release
-target <release> Generate class files for specific VM version
-help Print a synopsis of standard options
when I do a which javac I get "/jdk1.5.0_03/bin/javac"
what am I missing? is there a place in netbeans to define the path to javac?

any help would be greatly appreciated....

Veteq
 
Old 09-09-2006, 10:06 AM   #2
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Quote:
Originally Posted by Veteq
is there a place in netbeans to define the path to javac?
You can launch netbeans with the "--jdkhome <path-to-jdk>" option to override the default one, eg.
Code:
netbeans.exe --jdkhome "C:\Program Files\jdk1.5.0_03"
Alternatively, you can set the jdk to use by editing netbeans configuration file and updateing the netbeans_jdkhome property.
The config file should be something like this for windows:
Code:
C:\Documents and Settings\veteq\.netbeans\5.0\etc\netbeans.conf

Last edited by jlliagre; 09-09-2006 at 10:08 AM.
 
Old 09-09-2006, 11:13 AM   #3
Veteq
Member
 
Registered: Feb 2004
Posts: 155

Original Poster
Rep: Reputation: 30
that worked. thank you, great help

Veteq
 
  


Reply



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
gcj javac instead of jdk javac rvindiola Linux - Newbie 2 03-29-2006 08:18 PM
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Programming 5 12-07-2005 05:04 PM
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Linux - Software 4 12-05-2005 11:20 PM
after set up the search path, only javac works, why??? zhgalaxy Programming 1 04-25-2004 12:14 AM

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

All times are GMT -5. The time now is 10:56 AM.

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