Hello, I am a new to java.

I have a trouble.This is classpath error.Help.

Start here:
Java Tutorial
http://java.sun.com/docs/books/tutorial/
Setting the class path
http://java.sun.com/j2se/1.4/docs/tooldocs/win32/classpath.html
JavaTM 2 SDK Tools and Utilities
http://java.sun.com/j2se/1.4/docs/tooldocs/tools.html
How Classes are Found
http://java.sun.com/j2se/1.4/docs/tooldocs/findingclasses.html
Installation notes
http://java.sun.com/j2se/1.4/install-windows.html
good luck
Jesper

Similar Messages

  • Change A String Sentence -- Brand new to Java!

    Hello --
    I am brand new to Java, so please excuse my ignorance ...
    i'm working on a very simple project at school, so i dont need any high tech ways of doing this.. lol ... the program prompts the user to enter a sentence .... the program takes this sentence and outputs the first word of the sentence and moves it to the last word of the sentence .... for example:
    user enters: hello how are you today
    the program outputs it: how are you today hello
    this is a practice exercise, but im having trouble .... new student here!! help! lol
    thanks,
    cindy :)

    ok,
    assuming you have the reading the input part and stuff. the most straight forward and explainative way is :
    1. break the sentence into an array of words
    2. print the last word
    3. etc.
    use the java.util.StringTokenizer class. A sentence is a series of words delimited by <space>. String Tokenizer is used like java.util.Enumeration.
    In this case we are going to read the tokens/words in to an array, then you can print them in what ever order.
    like this
    import java.io.*;
    import java.util.*;
    public class wordswitch {
    public static void main(String[] args) {
    String sentence = new String();
    // get the sentence
    System.out.println("enter a sentence : ");
    try {
    BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    sentence = reader.readLine();
    reader.close();
    } catch( Exception e ) {
    System.out.println("Exception : "+e.getMessage());
    // convert the Sentence in to an array of words
    StringTokenizer strTok = new StringTokenizer(sentence, " ");
    int numWords = strTok.countTokens();
    String [] words = new String[numWords];
    int i=0;
    while( strTok.hasMoreTokens() )
    words[i++] = new String(strTok.nextToken());
    // display the new sentence
    if( numWords < 2 ) // if there is 1 or 0 words just echo back the original sentence
    System.out.println(sentence);
    else {
    // print the words in the new order
    System.out.print( words[numWords-1]+" " ); // last word first
    for( i=1; i<numWords-1; i++ ) // the second word the the second from last word
    System.out.print( words[i]+" " );
    System.out.println(words[0]); // the first word last

  • New to java: have to develop for palm, symbian and pocket pc

    Hello,
    I am fairly new to Java. After a long time of searching for a technology which allows it to develop an application for Palm OS, Symbian OS and Pocket PC I am curious if one can do this with Java. I searched the Palm and Symbian homepages and found that those OSes can handle MIDlets. I could not found if they also can handle full Java-applications. For the Pocket PC I could not found a solution to run Java applications or MIDlets.
    My questions:
    - is it possible to run Java applications on Palm, Symbian an Pocket PC?
    - if yes, which tools are the best to use? (SUN One?)
    - is it possible to write "real" applications (for instance a spreadsheet) as MIDlet or can one use "real"-Java to develop applications for Palm/Symbian/Pocket PC?
    Sorry if this questions sound a little stupid an thanks for every help/suggestion!
    Kind regards,
    Martijn

    Normaly such devices only know MIDlets. This is becaus they do not have the power of a PC. In addition to that they are to different in hardware so an other API is to use.
    I think it is notpossible to write a VM to do the same as a PC now.
    Hope this will help you.

  • New to java plz hep me

    hello all,
    i'm new to java. i need to know answers to these questions..
    1.     What is the purpose of CLASSPATH? How �classpath� is used by �java� and �javac�?
    2.     What is the purpose of finally block?
    3.     What is �Ant�?
    4.     Explain the difference between abstract class and interface. When to use an abstract class and when to use an interface?
    5.     What is the purpose of �Xms option of �java�?
    6.     What is the main difference between java.util.Date class and java.util.Calendar class?
    7.     What are the differences between wait and sleep methods?
    8.     What is the advantage of using ArrayList over Vector?
    9.     Explain the word �casting�
    could u plz help me.. i need them very much..

    1.     What is the purpose of CLASSPATH? How �classpath�
    is used by �java� and �javac�?Classpath is the paths along which javac or the jvm searches for classes to load.
    2.     What is the purpose of finally block?Cleanup if something went wrong
    >
    3.     What is �Ant�? Ant is a preprocessor, kinda like .bat files.
    >
    4.     Explain the difference between abstract class and
    interface. When to use an abstract class and when to
    use an interface?You should really google this. It's hard to answer this in 1 line
    >
    5.     What is the purpose of �Xms option of �java�?Increase the java heap size
    6.     What is the main difference between java.util.Date
    class and java.util.Calendar class?RTFM http://java.sun.com/j2se/1.5.0/docs/api/
    >
    7.     What are the differences between wait and sleep
    methods?sleep sleeps. Wait and Notify work together in multithreaded apps.
    >
    8.     What is the advantage of using ArrayList over
    Vector?It is faster
    >
    9.     Explain the word �casting�In the harry potter sense of the word?
    Object o = "hi";
    String s = (String) o;

  • Hello Friends, I am new in InDesign Java Script

    Hello Friends,
    I am new in InDesign Java Script. I want to edit the page's master text Frame Object through Java Script. Any Idea regarding this will help me a lot.
    thanks in advance

    Have you read any of the documentation? It doesn't seem so :-)
    Vivek Singh, the documentation is a great tool for understanding object model. Once you got the main concept of hierarchy between objects, accessing objects is quite a child game.
    I am not meaning scripting is easy but have a look on the documentation, it's a essential starting point. I bought too the Peter Karhel's guide
    http://oreilly.com/catalog/9780596528171/index.html
    it's really cheap regarding to the quality of the learning.
    Welcome in this world.
    BTW, masterspreads is a property of document. So you should work with something like :
    app.activeDocument.masterSpreads[0].xxx
    Loic

  • Hello, I am new to java and I am trying to something cool

    Hello I am new to Java and I am trying to do something cool. I have written some code and it compiles nicely. Basically what I am trying to do is use ActionListeners with JTextArea to change the size of a rectangle thing.
    Here is my code. The problem is that when I push the submit button nothing happens. Any help you could give would be greatly appreciated.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    class SecondGate extends JFrame implements ActionListener {
         float sxd = 190f;
         float dps = 190f;
         JTextArea Long = new JTextArea(1,3);
         JTextArea Short = new JTextArea(1,3);
         JLabel one = new JLabel("width");
         JLabel two = new JLabel ("Height");
         JButton Submit = new JButton("Submit");
    public SecondGate() {
    super("Draw a Square");
    setSize(500, 500);
         Submit.addActionListener(this);
         setLayout(new BorderLayout());
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
         String Width = Float.toString(sxd);
         String Height = Float.toString(dps);
         Rect sf = new Rect(Width, Height);
         JPanel pane = new JPanel();
         pane.add(one);
         pane.add(Long);
         pane.add(two);
         pane.add(Short);
         pane.add(Submit);
         add(pane, BorderLayout.EAST);
         add(sf,BorderLayout.CENTER);
    setVisible(true);
         public void actionPerformed(ActionEvent evt) {
    Object source = evt.getSource();
    if (source == Submit) {
              sxd = Float.parseFloat(Long.getText());
              dps = Float.parseFloat(Short.getText());
         repaint();
         public static void main(String[] arguments) {
    SecondGate frame = new SecondGate();
    class Rect extends JPanel {
         String Width;
         String Height;
    public Rect(String Width, String Height) {
    super();
    this.Width = Width;
    this.Height = Height;
    public void paintComponent(Graphics comp) {
    super.paintComponent(comp);
    Graphics2D comp2D = (Graphics2D)comp;
    comp2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
         BasicStroke pen = new BasicStroke(5F, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND);
    comp2D.setStroke(pen);
         comp2D.setColor(Color.blue);
         BasicStroke pen2 = new BasicStroke();
    comp2D.setStroke(pen2);
    Ellipse2D.Float e1 = new Ellipse2D.Float(235, 140, Float.valueOf(Width), Float.valueOf(Height));
    comp2D.fill(e1);
         GeneralPath fl = new GeneralPath();
         fl.moveTo(100F, 90F);
         fl.lineTo((Float.valueOf(Width) + 100F),90F);
         fl.lineTo((Float.valueOf(Width) + 100F),(Float.valueOf(Height) + 90F));
         fl.lineTo(100F,(Float.valueOf(Height) + 90F));
         fl.closePath();
         comp2D.fill(fl);
         }

    I got it to work. You were right about the method and references. Thank you
    Here is the working code for anyone who is interested in how to do this.
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    class SecondGate extends JFrame implements ActionListener {
    float sxd = 190f;
    float dps = 190f;
    JTextArea Long = new JTextArea(1,3);
    JTextArea Short = new JTextArea(1,3);
    JLabel one = new JLabel("width");
    JLabel two = new JLabel ("Height");
    JButton Submit = new JButton("Submit");
    String Width = Float.toString(sxd);
    String Height = Float.toString(dps);
    Rect sf = new Rect(Width, Height);
         public SecondGate() {
              super("Draw a Square");
              setSize(500, 500);
              Submit.addActionListener(this);
              setLayout(new BorderLayout());
              setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel pane = new JPanel();
              pane.add(one);
              pane.add(Long);
              pane.add(two);
              pane.add(Short);
              pane.add(Submit);
              add(pane, BorderLayout.EAST);
              add(sf,BorderLayout.CENTER);
              setVisible(true);
         public void actionPerformed(ActionEvent evt) {
              Object source = evt.getSource();
              if (source == Submit) {
              String Width = Long.getText();
              String Height = Short.getText();          
              sf.Width(Width);
              sf.Height(Height);
                   repaint();
         public static void main(String[] arguments) {
              SecondGate frame = new SecondGate();
         class Rect extends JPanel {
              String Width;
              String Height;
         public Rect(String Width, String Height) {
              super();
              this.Width = Width;
              this.Height = Height;
         String Width (String Width){
              this.Width = Width;
              return this.Width;
         String Height (String Height) {
              this.Height = Height;
              return Height;
         public void paintComponent(Graphics comp) {
              super.paintComponent(comp);
              Graphics2D comp2D = (Graphics2D)comp;
              comp2D.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
              BasicStroke pen = new BasicStroke(5F, BasicStroke.CAP_BUTT, BasicStroke.JOIN_ROUND);
              comp2D.setStroke(pen);
              comp2D.setColor(Color.blue);
              BasicStroke pen2 = new BasicStroke();
              comp2D.setStroke(pen2);
              Ellipse2D.Float e1 = new Ellipse2D.Float(235, 140, Float.valueOf(Width), Float.valueOf(Height));
              comp2D.fill(e1);
              GeneralPath fl = new GeneralPath();
              fl.moveTo(100F, 90F);
              fl.lineTo((Float.valueOf(Width) + 100F),90F);
              fl.lineTo((Float.valueOf(Width) + 100F),(Float.valueOf(Height) + 90F));
              fl.lineTo(100F,(Float.valueOf(Height) + 90F));
              fl.closePath();
              comp2D.fill(fl);
              }

  • Very New To Java

    Hi, I'm very new to java - 2nd day. Trying to move from Visual FoxPro.
    In testing statements to learn java, I can't seem to get java.util.Scanner.nextInt or nextDouble ... etc. to wait for a keyborad input. Is there something I have to configure before utilizing ...Scanner.nextWhatever?
    I'm using the latest java (just downloaded 2 day ago) and TextPad as my editor.
    Thanks you.

    Hi Petes1234:
    Thanks for you quick response!!!!
    The following is the code very simple ... still my "Hello World!" phase of learning.
    import java.util.Scanner;
    public class ScannerApp
         static Scanner sc = new Scanner(System.in);
         public static void main(String[] args)
              System.out.print("Enter an integer: ");
              int x = sc.nextInt();
              System.out.println("You entered " + x + ".");
    }The above code complies fine. But when I try to run it, it errors out with the following error:
    Enter an integer: Exception in thread "main" java.util.NoSuchElementException
         at java.util.Scanner.throwFor(Scanner.java:838)
         at java.util.Scanner.next(Scanner.java:1461)
         at java.util.Scanner.nextInt(Scanner.java:2091)
         at java.util.Scanner.nextInt(Scanner.java:2050)
         at ScannerApp.main(ScannerApp.java:11)
    See anyting I'm doing wrong here?

  • Hi I'm new to java

    Hi,
    When i tried to run the Servlet it is showing the following warning:
    "serializable class ProfileServlet doesn't declare a static final serialversionUID field of type long"
    ProfileServlet.java
    package flowers;
    import java.io.IOException;
    import java.io.*;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class ProfileServlet extends HttpServlet{
    public void doPost(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
              defaultAction(request,response);
    public void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
              defaultAction(request,response);
    public void defaultAction(HttpServletRequest request,HttpServletResponse response) throws ServletException,IOException
              String name=request.getParameter("UserID");
              String pwd=request.getParameter("PassWord");
              response.setContentType("text/html");
              PrintWriter out=response.getWriter();
              out.println("<html><head><title>Form Data Processing</title></head></html>");
              out.println("<body>");
              out.println("<h1>Welcome<h1>");
              out.println("<hr>");
                        out.println("<h3>Name is:"+name+"</h3></body></html>");
                        out.println("<h3>PassWord is:"+pwd+"</h3></body></html>");
              out.println("<hr>");          
    ProfilePage.html
    <p><HTML></p>
    <p><HEAD></p>
    <p><TITLE>ProfilePage.html</HTML></p>
    <p></HEAD></p>
    <p><BODY></p>
    <p><FORM Action="http://localost:9080/BeautifulFlowers/ProfileServlet" Method="POST"></p>
    <p>UserID:<INPUT TYPE="TEXT" NAME="UserID"><br></p>
    <p>PassWord:<INPUT TYPE="TEXT" NAME="PassWord"><br></p>
    <p><center></p><p><input type="submit" value="submit"
    size="16"></p>
    <p><input type="reset" value="reset" size="16"></p><p></center></p><p></FORM></p>
    <p></BODY></p>
    <p></HTML></p>
    <p></p>
    <p></p>
    Please help me with this

    duffymo wrote:
    Terrible code, by the way. Yours is an example of how not to write good servlets. You're new to Java, so it can be excused. If you're new, why start with a servlet? Most people begin with "Hello, world". Are you already beyond that?I don't know the story with this newbie, but there are just too many instructors that must be introducing Java in heinous ways, like via scriptlets stuck in JSP. It used to be the misconception that Java was mainly for writing applets; now the misconception is that it's mainly for scriptlets.
    It's gotten to the point that I don't want to look at any posted question about JSP or servlets. I know the code will be so bad that only first advice is to start over, but the only thing the poster wants to hear is how to hack their code further.

  • Hi, i'm new to java. need help setting the path in win XP

    hi all,
    i'm new to java technology. i've just downloaded the JDK and ran my first java program (hello world). i love it. java's gr8. i need help. i run win XP and how can i setup the path sothat i can execute my programs from the root dir??? any help in this direction will be greatly appreciated. please email me @ [email protected]
    Best regards
    Mrinal

    Go to Start menu and select Control Panel. In the Control Panel, double click on System. In the System dialogue, choose the Advanced tab. Then click on Environmental Variables. Select Path and Edit. Put ;c:\j2sdk1.4.0\bin at the end of the Path (or c:\j2sdk1.4.0\bin;) at the start of the Path. That's it.

  • New to Java, where do I start??!?!

    Hello everyone, let me just introduce myself. My name is Jeff and I am from PA, I am a recent graduate of Penn State university with a bachelors of science in information science and technology, application/integration. My major dealt with alot of analysis/requirements/testing/planning/documentation, with a little bit of programming in such interfaces as HTML, CSS, ASP.Net, and I had one Java course which I could have done better in.
    I started my career for a very large well known company in an entry level position. I went in with very little development skills, in the languages that we use here. Mostly everything is Java/Javascript, both of which I am pretty clueless about. They also do alot of web 2.0 stuff using ajax/xml/dojo. I just want to have some suggestions on how I could maybe learn this language a little better, I am not getting anything really so far, because ive just been doing e-learnings and such. I want to start shadowing the developers, but I dont want to go in seeming stupid! Who has some suggestions?

    Hi and welcome.
    This is the beginner's set:
    [Sun's basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    [Sun's New To Java Center|http://java.sun.com/learning/new2java/index.html]
    Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    jGuru
    A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch
    To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    [Yawmarks List|http://forums.devshed.com/java-help-9/resources-for-learning-java-249225.html]
    [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance]
    [http://javaalmanac.com|http://javaalmanac.com]
    Bruce Eckel's [Thinking in Java(Available online.)|http://mindview.net/Books/DownloadSites]
    Joshua Bloch's [Effective Java|http://www.amazon.com/Effective-Java-2nd-Joshua-Bloch/dp/0321356683]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance]
    James Gosling's [The Java Programming Language|http://www.amazon.com/Java-TM-Programming-Language-4th/dp/0321349806/ref=sr_1_1?ie=UTF8&s=books&qid=1247059012&sr=1-1]
    Gosling is the creator of Java. It doesn't get much more authoritative than this.
    Joshua Bloch and Neal Gafter [Java Puzzlers.|http://www.javapuzzlers.com/]

  • Very new at Java

    Hello,
    I have am new also to Java and would like to know what to download first. I want to work with databases and use java as the front end. The databases I use are MySql. I am really excited about this language because I have a Apple at home and a PC at work. By the way I have read this I can use both and not have to worry about different OS. This sounds great.

    Hi
    Welcome to Java!
    I don't know much about Macs, but for PC you need the following:
    -The JDK (Java Development Kit)
    JDK 5 is the current version (jdk 6 due before end of year).
    http://java.sun.com/javase/downloads/index.jsp
    -A Java IDE (Integrated Development Environment - in case you didn't know ;) )
    I recommend Netbeans as your IDE. Check out:
    www.netbeans.org
    It's free and runs on Mac too, assuming you have jdk5.0 for Mac. Netbeans 5.5 is the latest version (released a few days ago) and requires jdk5.0, Netbeans 5.0 requires only JDK1.4.2 if you only have on older JDK on your mac. Various plugins are available on the netbeans site too.

  • Very new in Java pls help!!!!!!

    hello,
    i just started to learn java and trying to do my first program, but dont know why i cant do that! it asking me to set my PATH in sdk bin folder with jdk and i dont know how to do that, couse i install it in diferent folders! im trying to set c:\jdk1.6\bin;%PATH% but writing "environment variable c:jdk1.6\bin;C:\windows\system32;C:\windows;C:\windowasystem32\wbem;C;\program files\cyberlink\power2Go\C:\sun\SDK\bin not defined" help me please!!!

    - Right click 'my computer', select 'properties'.
    - Click the 'advanced' tab.
    - click the 'environmental variables' button
    Here you will find the PATH environmental variable, most likely under system variables. Add the path to the JDK bin directory here.
    Note: If you have a command prompt open while you are doing this, open a new one as the old one will not see the changes you make. To make sure the PATH is valid, open a command prompt and type:
    echo %PATH%

  • Bit new to Java.

    I'm a bit new to Java. Can someone pls tell me if this: class hello extends JComponent and class hey extends JComponent are kinds of inheritance. Thanks a lot.

    Yes, anytime you use 'extends', you've created an inheritance structure. In the two lines you posted, both 'hello' and 'hey' can be used as a JComponent, and have it's member variables and methods.

  • Hello, i'm a new mac book user and i'm having a little issue with music

    hello, i am a new mac user and i was trying to copy all my music over to the laptop 100gb worth. but someone i managed to delete them off my external hard drive and i just checked my HD on the mac and its there in a folder called "others" i know its the music because of the size of the folder, how do i restore this to my computer, thanks for the help

    Paragon Software has the most reliable NTFS driver for Mac
    tips on importing and organizing, transferring from Windows etc
    http://www.apple.com/support/itunes
    http://www.ilounge.com

  • How can I open help file (HTML or .chm) from Java Web Start (new to JAVA)

    Hi All,
    Im trying to open the help file of my application.
    When trying to access the help file from the GUI (pressing F1 for launching the help file), I'm geting the an error, something like:
    "Can't show help URL: jar:file:C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart\RMjar-name!/com/resources/helpFiles/MyHelpFile.html"
    It seems that the file which is packed in a jar, was downloaded to the Java Web Start cache directory:
    C:\Documents and Settings\%USER%\Application Data\Sun\Java\Deployment\javaws\cache\http\Dlocalhost\P7001\DMwebstart
    The code which is activated when launching the help file is:
    try
                ResourceBundle resourceBundle = DoubleResourceBundle.getBundle("Resource", "ResourceImpl");
                RuntimeUtil.launchFile(new File(resourceBundle.getString("help.file")));
            } catch (IOException e)
                // TODO Auto-generated catch block
                e.printStackTrace();
            }where the property "help.file" is in some property file in the resource bundle named "Resource", and looks like this :
    help.file="com/trax/docs/help/global/MyHelpFile.html"
    The function "RuntimeUtil.launchFile" knows how to launch any file in its default application, and indeed it does launches the html, when giving it an absolute path to the file on my PC, as "C:\Helpfiles\MyHelpFile.html" as such:
    RuntimeUtil.launchFile("C:\Helpfiles\MyHelpFile.html");My question is :
    The application is going to be deployed on a Customer PC. How can I access the html file from the code, with a relative path and not its absolute path on the customer pc, which I can't know?
    I found these restrictions regarding web start:
    (copied from "http://rachel.sourceforge.net/"):
    *Rule 1: Java Archives only. No loose files.* All your resources have to be packaged in Java Archives (jar) if you want to have
    them delivered to the user's machine and kept up-to-date automatically by Java Web Start.
    *Rule 2: No file paths.* You can't use absolute or relative file paths to locate your
    jars holding your resources (e.g. <code>jar:file:///c:/java/jws/.cache/resources.jar</code>).
    Absolute file paths won't work because you never know where Java Web Start
    will put your jar on the user's machine. Relative file paths won't work because Java Web Start
    mangles the names of your jars (e.g. <code>venus.jar</code> becomes <code>RMvenus.jar</code>)
    and every JNLP client implementation has the right to mangle your names
    in a different way and you, therefore, can't predict the name with
    which your jar will be rechristend and end up on the user's machine in
    the application cache.Seems complex or impossible, to perform a simple task like opening a file.
    Please advise (I'm new to Java and Web Start).
    BTW, I'm working with IntelliJ IDEA 5.0.
    Thanks,
    Zedik.
    {font:Tahoma}{size:26pt}
    {size}{font}

    the follwing method i have used to open html file ...
    so to access html file i am shipping resources folder with jar file ..
    private void openHtmlPages(String pageName) {
         String cmd[] = new String[2];
         String browser = null;
         File file = null;
         if(System.getProperty("os.name").indexOf("Linux")>-1) {
              file = new File("/usr/bin/mozilla");
              if(!file.exists() ) {
              }else     {
                   browser = "mozilla";
         }else {
              browser = "<path of iexplore>";
         cmd[0] = browser;
         File files = new File("");
         String metaData = "/resources/Help/Files/"+pageName+".html"; // folder inside jar file
         java.net.URL url = this.getClass().getResource(metaData);
         String fileName = url.getFile();
         fileName = fileName.replaceAll("file:/","");
         fileName = fileName.replaceAll("%2520"," ");
         fileName = fileName.replaceAll("%20"," ");
         fileName = fileName.replaceAll("jarfilename.jar!"," ").trim();
         cmd[1] = fileName;     
         try{
              Process p = Runtime.getRuntime().exec(cmd);
         }catch(java.io.IOException io){
                   //Ignore
    can anyone give me the solution..???
    Regards
    Ganesan S

Maybe you are looking for

  • 790fx-GD70 Dual channel memory issue

    I am just trying to build my 2nd pc and have ran into some snags I need some help with. I'm using the above motherboard with the AMD Phenom II X4 955 Black Ed  3.2 - HDZ955FBGIBOX  processor. I'm using a CORSAIR|CMPSU-750TX 750W  power supply along w

  • [JS CS3] Releasing Anchored Objects

    Hello, The following script places a libray item as an anchored object... var myDoc = app.documents[0]; var myFrame = app.documents[0].textFrames.item("myTarget"); var myInsertPoint=myFrame.parentStory.paragraphs.item(0).insertionPoints.item(0) var m

  • What's This Indicator?

    Just downloaded software update and now have an indicator I've never seen before appearing on the phone in the upper right corner next to the battery indicator. Can't even really describe it except to say that it looks like a phone handset in the "hu

  • SQL Developer video problems on Parallels (Win XP)

    I am running ORACLE 11G, APEX and SQL Developer on my MacBook pro. Initially I installed 1.5.4 SQL Developer and I stared having problems when editing SQL scripts. Edit window, blacks out the lines which are not being viewed. Very annoying when worki

  • ESS MSS CBS Failed - Broken DCs */cfg

    Hi,       I am at the last stage of the import process for ESS MSS and its dependent SCs into our NWDI environment. All the imports are successful however, when I check the status of all the DCs under ESS and MSS components I see that all the ones DC