Netbeans linking to java

Hi! I installed netbeans bundled with J2SE 1.5.0 Update 2. Now as J2SE 1.5.0 Update 6 is available, I downloaded (i.e. only J2SE 1.5.0 Update 6) without Netbeans and installed it.
I have also uninstalled J2SE 1.5.0 Update 2.
Now when I start Netbeans ints giving error "java.exe" not found. I guess the compiler linked to Netbeans was from J2SE 1.5.0 Update 2, and as I have uninstalled it, I get this error.
Can anyone please suggested a solution to my problem. May be there is a method to link Netbeans with J2SE 1.5.0 Update 6.

edit netbeans.conf  and change netbeans_jdkhome
netbeans-root-dir|
                                | etc
netbeans.conf
# ${HOME} will be replaced by JVM user.home system property
netbeans_default_userdir="${HOME}/.netbeans/4.1"
# options used by netbeans launcher by default, can be overridden by explicit
# command line switches
netbeans_default_options="-J-Xms32m -J-Xmx128m -J-XX:PermSize=32m -J-XX:MaxPermSize=96m -J-Xverify:none"
# default location of J2SE JDK, can be overridden by using --jdkhome <dir> switch
netbeans_jdkhome="C:\jdk1.5.0_06"  <---------------> change it
# clusters' paths separated by path.separator (semicolon on Windows, colon on Unices)
#netbeans_extraclusters="/absolute/path/to/cluster1:/absolute/path/to/cluster2"

Similar Messages

  • Updated link to Java Card Development Kit and related documentation

    Note that the right link for Java Card Development Kit and related documentation is
    http://www.oracle.com/technetwork/java/javame/javacard/download/index.html
    It used to be
    http://www.oracle.com/technetwork/java/javacard/downloads/index.html
    which is still on-line, but the links there are dead and sometime to obsolete stuff.

    If you don't have those directories, obviously, you don't have the source release with cryptographic extensions. You have a different release.
    The version you downloaded isn't a source release but you still have the full kit.
    For the src release, contact $un for a license.

  • Linking different Java Desktop Projects

    I have made various Java desktop projects in NetBeans. The problem comes when I put an MDIForm in one of the projects, and in the MDI form I have Menus which when selected, should be able to show the runnable class of the other projects.<using the launch class method>. I have tried importing the other projects as packages in the project with the MDI but I get an error that says the packages do not exist. Is there a way I could link up the various projects,such that on the click events of the menus, the various projects forms are shown.

    By "Java desktop projects" I assume you mean independent Java applications that are initiated using the command "java [something]" to start a native application (Java) from a command line environment?
    If so, from one application, you can use Runtime or ProcessBuilder class methods to do that.
    If you don't do that, then all of the "Java desktop projects" must be incorporated in a single Java application. If using standard Java, classes that reside in different packages are made available using import statements.
    Typically an IDE such as NetBeans has additional requirements that also must be met. These forums are about the Java language, not IDEs. Please ask questions about using an IDE at a forum for that IDE, not here.

  • Column link - call java script & assign current report column value to item

    Hi,
    How to call java script and assing current report column value to item?
    I have a button column in the report to 'delete' the selected row.
    I want to first show dialog box with message 'Are you sure?'. If yes, process to delete
    will be executed, else no action.
    In order to fire JS, I used Column Link ->Target=URL.
    Problem: The alert is showing but I don't know how to pass selected row's primary
    key value to process (to delete selected row).
    I have a item which can be used to store selected primary key value but don't know how to assign the value
    when button pressed.
    Thanks in advance
    Dip

    Ok. The issue has been resolved by following way.
    PAGE PROCESS: delete_request
    begin
    delete xyz
    where id = :P8_id;
    commit;
    end;BUTTON URL:
    javascript: DelRec(null,'CREATE', 'f?p=&APP_ID.:8:&SESSION.:delete_request:NO::P8_id:#id#');Java Script:
    <script language="JavaScript1.1" type="text/javascript">
    function DelRec(msg, req, url){
    var confDel = msg;
    if(confDel ==null){
    confDel= confirm("Are you sure?");
    }else{
    confDel= confirm(msg);}
    if (confDel== true){
    redirect(url);           }
    </script>

  • Html link in java

    I'm looking for a way to have a JButton in my java applet that will load up a new page from the applet page when it is clicked. Basically I'm making a game, and the registration system will be done in php, so I don't want to create the same registration system in my java application, so I need a way to link to the webpage.

    Look at the AppletContext class for methods to interact with the browser, such as showDocument(URL)
    Pete

  • Where is the best place to ask questions about NetBeans 6 for Java?

    When it comes to Java discussions, all I can think is this forum, but what about Java Desktop Applications using NetBeans IDE 6?
    Question/Query 1:
    I just like to ask how I can make the Database Application Template under the Java> Java Desktop Application> Database Application:
    Well, the the nice Frame with prebuilt components are good, but how can we customize the Window Icon? Has anybody in this forum and particularly Netbeans 6 users encountered the same scenario?
    Question/Query 2:
    How can I make a splash page with such a Database Application template too?

    Hello Andy,
    we talk about Photoshop, or? In this case you should use Photoshop General Discussion
    You will find all the (other) communities by clicking "Adobe Communities" on the top of the window. Please have a look at
    https://forums.adobe.com/welcome (see screenshot) and/or open "All communities"
    Hans-Günter

  • Datasocket: link between java and labview

    Hi,
    I would like to link java and labview for a real time animation and i would like to use datasockets.
    Can somebody proficient in using datasockets help me out.
    My email id is [email protected]
    Thank u.
    jagadish.

    The person who wrote the book (literally) on LabVIEW and Java is Jeffrey Travis. His book "Internet Applications in LabVIEW" has examples. His web site is here. You can also get the book on Amazon.

  • Link for JAVA homogenous system copy for oracle

    hi
    I am unable to find the document for JAVA homogenous system copy for Oracle for NW04 & NW04s
    kindly find me the link
    thx
    regards
    Shoeb

    Hi
    Here you go...-
    [JAVA Sytem Copy for ORACLE |https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cd76e07d-0c01-0010-298d-f699863f2ce4]
    Regards
    Jhony

  • Having problems linking two java classes getting a "deprecated API" error??

    Hi,
    I am tryin to link one page to another in my program, however i get the followin msg:-
    Project\alphaSound.java uses or overrides a deprecated API.
    Note: Recompile with -deprecation for details.
    Process completed.
    this only happens when i add the bold piece of code to the class; even though the italic piece of code does take you to a new page?:-
    public class alphaSound extends JPanel implements ActionListener
    {static JFrame f = new JFrame("AlphaSound");
    public alphaSound() {
    public void actionPerformed(ActionEvent event) {
                 Object source = event.getSource();
    else if(source == vowel)
    { Vowelm vm = new Vowelm();
    vm.setSize(Toolkit.getDefaultToolkit().getScreenSize());
    vm.show();
    f.dispose();
    else if(source == back)
    { MainPage main = new MainPage();
    main.setSize(400,300);
    main.show();
    f.dispose();}
    public static void main(String s[]) {
            WindowListener l = new WindowAdapter() {
                public void windowClosing(WindowEvent e) {System.exit(0);}
            //JFrame f = new JFrame("AlphaSound");
            f.addWindowListener(l);
            f.getContentPane().add(new alphaSound());
            f.setSize(Toolkit.getDefaultToolkit().getScreenSize()); 
            f.show();
    }here is the class its tryin to call
    public class Vowelm extends JPanel implements ActionListener
    {static JFrame v = new JFrame("VowelSound");
       public Vowelm() {
                                                   ..etc...
    public static void main(String s[]) {
            WindowListener l = new WindowAdapter() {
                public void windowClosing(WindowEvent e) {System.exit(0);}
            //JFrame f = new JFrame("VowelSound");
            v.addWindowListener(l);
            v.getContentPane().add(new VowelmSound());
            v.setSize(Toolkit.getDefaultToolkit().getScreenSize()); 
            v.show();
    }Im pretty sure ther is some conflict between the two classes due to the way they are called and designed?
    Hope you can help!
    Kind Regards
    Raj

    You may want to check your show() calls and see if
    they can be replaced with setVisible(). Forexample,
    in your Vowelm code, you have a static JFrame v.
    At
    the end of your main function, you use v.show().As
    of JDK1.1, this has been deprecated in favour of
    setVisible(boolean).hey show() in JFrame is from Window and in windowits
    not deprecated ..
    show is not decrecated thats for sure ... i dontknow
    y you said that ...
    you can look in docs as well..
    True - but this in turn overrides show() from
    java.awt.Component, which has been deprecated. My
    guess is that's where the problem comes from.
    Thanks for the Dukes!
    FlicAnd then again - perhaps not. After looking into this a bit more, I take back my last comment about the Component override. However, as I said in my original reply, compiling with -deprecation should tell you which show() call is flagging the error. There is definitely one somewhere that the JVM doesn't like - without seeing your complete code, it's hard to say exactly where. Based on what you've posted, my guess is that it is within the Vowelm class.
    Next time, I'll try to avoid 'shooting from the hip'.
    Again, thanks for the Dukes,
    Flic

  • Correct link to JAVA OS X 2013-003?

    Hi all,
    What's up with all the links I can find on GOOGLE to the OS X JAVA 2013-03 updates?
    They are all linked to OS X 2013-02 and dated in March 4th 2013?
    http://support.apple.com/kb/HT5675
    Version: 1.6.0_43
    Post Date: Mar 4, 2013
    Download ID: DL1572
    License: Update
    File Size: 63.84 MB
    System Requirements
    OS X Lion v10.7 or later
    OS X Mountain Lion v10.8 or later
    Puzzles me to the max!

    Why post 2013-003 if there's only the OLD 2013-002?????
    About Java for OS X 2013-002
    Java for OS X 2013-002 delivers improved security, reliability, and compatibility by updating Java SE 6 to 1.6.0_43.
    On systems that have not already installed Java for OS X 2012-006, this update disables the Java SE 6 applet plug-in. To use applets on a web page, click on the region labeled "Missing plug-in" to download the latest version of the Java applet plug-in from Oracle.
    Please quit any web browsers and Java applications before installing this update.
    See http://support.apple.com/kb/HT5675 for more details about this update.
    See http://support.apple.com/kb/HT1222 for information about the security content of this update.Java for OS X 2013-002 delivers improved security, reliability, and compatibility by updating Java SE 6 to 1.6.0_43.
    SHA1= 47e38cf089a6a7bba9e2b0b387fe09e2b77e10a6

  • Create filesystem (symbolic) links from java

    I know that symlinks are not platform independent, so I already gave up to find a portable solution. But has anyone found a way to do a "ln" or "ln -s" from pure Java code?

    I would think the answer is no.
    As you are already aware, links are platform dependent.
    For instance, VMS has an ASSIGN command that is similar to the UNIX ln command but differs in quality and duration.

  • Needs link for JAVA homogenous system copy NW04 & NW04s

    hi
    I am unable to find the document for JAVA homogenous system copy for NW04 and NW04s.
    kindly plz provide the link for it
    its urgent
    thanks
    regards
    Shoeb

    Hi,
    try [http://service.sap.com|http://service.sap.com] -> Relase & Upgrade-Info -> Installation and Upgrade ...-> SAP NetWeaver -> SAP NetWeaver 7.0 -> Installation -> Installation - SAP NetWeaver Systems
    Kind Regards
    David Heidbrink

  • Creating links using Java

    I am using Java code to develop an FAQ tool. I would like to provide links (html links) in the applet. When user clicks on the link the appropriate URL should open in the browser (same like the anchor tag of HTML.) Can anybody suggest how this can be done?

    In the applet,
    "getAppletContext().showDocument(yourUrl);" will show
    the document pointed by the URL yourUrl in the browser
    window. See the api docs of java.applet.AppletContext
    for overloads / instructions.ThanQ.
    Once more doubt, is it possible to open the link in a new browser window instead of the same window where the applet is running?

  • How to link two .java files together?

    hello everybody,
    is it possible to link two or more .java files together? I mean is if I have 3 .java files. (a.java, b.java, c.java) then I have 3 .class files too. How do I use the method in other .java files. For example :
    public a extends Applet {
    // call b.class
    b();
    public b extends Applet implements ActionListener {
    void title1() {
    How to call the b.class? How to call the title1() method?
    Is it related to JAR or package??
    Thanks for helping me. v(^_^)v

    O.K, you do not link ".java" files together.
    You compile them into class files and they can create new instances of each other and and access their variables and work together.
    I recommend "Sam's Teach Yourself Java in 21 Days".
    It will start you out with the basics.
    --Ian                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • Linking a Java class to a Swing GUI...

    Well I've got a class for running a text based interface for a simple queue system. All I need to do is link it to the GUI i have designed. Below is the code for both. Anyone that can give me code to link the classes between them (I'm going to change the uuInOut statements to .getText() where relevant).
    Thanks for the help. My bloodpressure and stress levels need it.
    import uuInOut;
    class Queue
         QueueNode start;
         QueueNode end;
         public int totalSize = 0;
         public int choice;
         public String yesNo;
         public Queue()
                        start = new QueueNode();
                        start = null;
                        end = new QueueNode();
                        end = null;
         public void add()
              if (start==null)
                   start = new QueueNode();
                   System.out.print("\nPlease enter your username: ");
                   start.owner = uuInOut.ReadString();
                   System.out.print("\nPlease enter the name of the document:");
                   start.name = uuInOut.ReadString();
                   System.out.print("\nPlease enter the size of the document(in kilbytes):");
                   start.size = uuInOut.ReadInt();     
                   totalSize = totalSize + start.size;
                   start.next = null;
                   start.previous = null;
                   end = start;
              else
                   QueueNode temp = new QueueNode();
                   System.out.print("\nPlease enter your username: ");
                   temp.owner = uuInOut.ReadString();
                   System.out.print("\nPlease enter the name of the document:");
                   temp.name = uuInOut.ReadString();
                   System.out.print("\nPlease enter the size of the document(in kilobytes):");
                   temp.size = uuInOut.ReadInt();     
                   totalSize = totalSize + temp.size;
                   temp.next = end;
                   end.previous = temp;
                   end = temp;
         public boolean isEmpty()
              return (start==null);
         public void remove()
              String name2;
              QueueNode before = new QueueNode();
              QueueNode after = new QueueNode();
              QueueNode temp = new QueueNode();
              if (this.isEmpty())
                        System.out.println("Error there are no documents in the queue.");
                   else
                        do
                             System.out.println("Which document do you wish to remove: ");
                             name2 = uuInOut.ReadString();
                             while(temp.name!=name2)
                                  before = temp.previous;
                                  after = temp.next;
                                  temp.next = after;
                                  temp.previous = before;
                                  temp = before;
                                  System.out.println("\nThe document has been removed");
                        System.out.print("\nDo you wish to remove another document: ");
                        yesNo = uuInOut.ReadString();
                        }while(this.yesNo.equalsIgnoreCase("y"));
         public void displayAll()
              if (this.isEmpty())
                   System.out.println("\nThere are no documents to display.");
              else
                   System.out.println("User\t\tDoc Name\t\tSize\n");
                   QueueNode temp = new QueueNode();
                   temp = start;
                   while (temp!=null)
                        System.out.println(temp.owner+"\t\t"+temp.name+"\t\t\t"+temp.size);
                        temp = temp.previous;          
         public int getSize()
              return totalSize;
         public void purge()
              if (this.isEmpty())
                   System.out.println("\nThere are no documents in the queue.");
              else
                   start = new QueueNode();
                   start = null;
                   end = new QueueNode();
                   end = null;
                   totalSize = 0;
                   System.out.println("The queue is now empty.");
         public void displayMenu()
              System.out.println("\n\t\tMain Menu");
              System.out.println("\n\t1.\tAdd a document to the Queue");
              System.out.println("\t2.\tRemove a document from the Queue");
              System.out.println("\t3.\tDisplay all documents in the Queue");
              System.out.println("\t4.\tDisplay the total size of the Queue");
              System.out.println("\t5.\tPrint a document");
              System.out.println("\t6.\tPurge all documents from the Queue");
              System.out.println("\n\t8.\tExit Program");
              System.out.flush();
         public void print(String name2)
              if(this.isEmpty())
                   System.out.println("\nThere are no documents to print.");
              else
                   System.out.println("Printed");
    Here's the code for the GUI (there seems to be a problem with it which I cant seem to figure out)
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import Queue.*;
    import QueueNode;
    public class PrinterQueueInterface extends JFrame implements ActionListener
         JLabel nameLabel, userLabel, sizeLabel, numberLabel, totalLabel;
         JTextField nameBox, userBox, sizeBox, numberBox, totalBox;
         JButton addButton, removeButton, printButton, purgeButton, exitButton;
         public PrinterQueueInterface()
              super("Queue System");
              setSize(350,360);
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              nameLabel = new JLabel("Name:");
              userLabel = new JLabel("User:");
              sizeLabel = new JLabel("Size:");
              numberLabel = new JLabel("No. Of Items in Queue:");
              totalLabel = new JLabel("Total Size of the Queue:");
              nameBox = new JTextField(15);
              userBox = new JTextField(15);
              sizeBox = new JTextField(5);
              numberBox = new JTextField(3);
              totalBox = new JTextField(15);
              addButton = new JButton("Add Document");
              removeButton = new JButton("Remove Document");
              printButton = new JButton("Print Document");
              purgeButton = new JButton("Purge the Queue");
              exitButton = new JButton("Exit");
              JPanel pane = new JPanel();
              setContentPane(pane);
              show();
              Container contentPane = getContentPane();
              contentPane.setLayout(new GridLayout(0,2));
              setLayout(new BoxLayout(this,BoxLayout.Y_AXIS));
              contentPane.add(nameLabel);
              contentPane.add(nameBox);          
              contentPane.add(userLabel);
              contentPane.add(userBox);
              contentPane.add(sizeLabel);
              contentPane.add(sizeBox);
              contentPane.add(numberLabel);
              contentPane.add(numberBox);
              contentPane.add(totalLabel);
              contentPane.add(totalBox);
              setLayout(new BoxLayout(this,BoxLayout.Y_AXIS));
              contentPane.add(addButton);
              contentPane.add(removeButton);
              contentPane.add(printButton);
              contentPane.add(purgeButton);
              contentPane.add(exitButton);
              addButton.setLocation(50,100);
              removeButton.setLocation(10, 100);
              printButton.setLocation(20,100);
              purgeButton.setLocation(30,100);
              exitButton.setLocation(40,100);
              addButton.addActionListener(this);
              removeButton.addActionListener(this);
              printButton.addActionListener(this);
              purgeButton.addActionListener(this);
              exitButton.addActionListener(this);
              public void actionPerformed(ActionEvent evt)
                   Object source = evt.getSource();
                   if (source==exitButton)
                        System.exit(0);
                   else if (source==clearButton)
                        nameBox.setText("");
                        userBox.setText("");
                   else
                        public String docName = nameBox.getText();
                        public String userName = userBox.getText();
                        public String docSize = sizeBox.getText.toInt();
                        if (source==addButton)
                             Queue.add(docName, userName, docSize);
                        else if (source==removeButton)
                             Queue.remove(docName, userName, docSize);
                        else if (source==printButton)
                             Queue.print();
                        else if (source==purgeButton)
                             Queue.purge();
              public void main(String[] args)
                   new PrinterQueueInterface();
    }

    It is simple and very annoying.
    I think you should try to do it yourself to learn how Java works, it is a good exercise for you.
    The forum is used to work together on different problems, giving tips and ideas but not coding for other people.
    About your problem, two things : you should rewrite all the code (not trying to link these two classes) and you will have serious problems wityh the different setLayout you use !
    Denis

Maybe you are looking for

  • Cannot send email from aim account

    From a quick internet search, it appears I'm not the only one with this particular problem. When I try to send mail from my iPhone from my Aim mail account, the "from" name shows my aim ID with an extension of "@[email protected]". Clearly, with this

  • Mini-Dvi to Video compatability?

    I have a macbook intel core duo 2 i bought under a year ago. I was going to by a mini-dvi to video cable so i can use my television with it. On ebay there was a mini-dvi to video cable but the seller said he was selling it because it does not fit the

  • Did someone leave a frag in my IMAC????

    After 2 days of ownership (most of that spent putting software on) my lurvely 27inch IMAC it has blown up. I wasnt doing anything at the time, it was just sat switched on whilst i talked to a collegue and BANG!!! A bit of white fluid flew out from th

  • How do starting/stopping of application services differ in R12 ??

    How do starting/stopping of application services differ in R12 when compared to 11i ?? Can I start/stop services using opmnctl ??

  • Insert Flash Phot Alblum

    I am using Dreamweaver CS3 & Fireworks CS3 (Adobe Web Premium CS3). In my htm file I am creating a Flash Photo Alblum it opens the dialog box to create it, then opens Fireworks CS3 to create thumbs, pages and so on, then here's where I get the error