Jcreator problem

this is really bugging me. before to-day I was using this program without any problems.
today I got this message:
--------------------Configuration: j2re1.4.2_13 <Default>--------------------
Invalid command line. Error : Invalid path
Command : "C:\Program Files\Java\j2re1.4.2_13\bin\javac.exe" -classpath "C:" -d C: C:\fibinachi.java"
Directory : C:\
Process completed.
anyone know what could cause this?

before i answer your question, 2 small things...
#1
why are you compiling or saving anything in the C: drive?
that is a hooorrible practice.
take a moment to create a decent working folder.
may i suggest C:\Java\ and a folder for every project.
#2
its "fibonacci"
as for your question...
first:
go into windows explorer and check if this path exists
"C:\Program Files\Java\j2re1.4.2_13\bin\javac.exe"
second:
you have a floating quotation mark at the end of your command
"...\javac.exe" -classpath "C:" -d C: C:\fibinachi.java" <--- right here
try the command
"...\javac.exe" -classpath "C:" -d C: "C:\fibinachi.java"

Similar Messages

  • Problem with jcreator help

    hello everyone.
    please help.
    i downloaded from here http://java.sun.com/javase/downloads/index.jsp
    the jdk 6 updated 3,
    also downloaded the api documentation 6.
    after running jdk i copied the doc file inside the java file.
    after all that i installed jcreator pro 3.5...
    but it says java.syn contains an invalid path
    xml.syn contains an invalid path
    etc
    etc
    any ideas please?
    i need that for my school
    thanks in advance:)

    Hey thanks vaskol
    it helped ...i m rewriting all the constructors .
    thanks again :)
    maybe you have used your Employee constructor method
    wrong?
    for example you could have it like that
    public Employee(String name) { /*...*/ }but call it outlike that:
    Employee e = new Employee();here you go, you have constructor with one argument,
    but are trying to use one with no arguments...
    but that's just a guess

  • JCreator compile problem

    I just installed JCreator and when I go to compile, I get the error:
    Error : Invalid path, \bin\javac.exe -classpath C:\OOSD -d C:\OOSD C:\OOSD\project2.java
    I installed the JDK files, can anyone help me out?

    You should not use non-ASCII characters in source code because it's not portable; compilers in different locales will produce different output. In the Sun "javac" compiler there is command line flag you can use to set the input file encoding, but that likely doesn't help you since you are using an IDE. Perhaps a forum specific to your IDE can provide better help.
    The portable way to write the program would be using "unicode escapes," for example you would write "\u00e9 \u00e1 \u00e0 \u00f3 \u00f2 \u00e3 \u00f5 \u00e7" instead of "� � � � � � � �". There is a command line tool to make this conversion automatically, and I suspect some IDEs too have support for this conversion.

  • Reading into ArrayList problem - what is wrong?

    Hi, I am trying to read a list of strings into an ArrayList and am having some problems. I have created a main() which at the moment does nothing, its just to make sure that the array's content is genuine (meaning consistent with the string in the text file) so I am having it simply printed out to screen. The error I am getting is "cannot resolve symbol, variable array" by my compiler (Jcreator). I will paste the code below:
    import java.io.*;
    import java.util.*;
    public class hostList{
    public hostList()
    try
    File input = new File("hosts.txt");
    BufferedReader in=new BufferedReader(
         new InputStreamReader(new FileInputStream(input)));
         ArrayList list=new ArrayList();
         String line;
         while((line=in.readLine())!=null)
              list.add(line);
         String[] array=new String[list.size()];
         list.toArray(array);
         in.close();
    catch(FileNotFoundException e)
    System.err.println("File not found...");
    catch(IOException e)
    System.err.println("IO Problem");
    }//hostLst()
         public static void main (String [] args){
              System.out.println("Array content:");
              System.out.println("array " + array[0]);
              for (int i=0; array[i] !=null; i++)
                   System.out.println(array);
         }//main
    }//class
    Also, how would I use the array objects in another class, say class B. How can I access the arrays in class B so that i can use its methods? eg. array[i].doSomething(); where doSomething() is a method in class B. What libraries would i need to import (if any) ?
    Help is appreciated, thanks.

    this code wont compile bcas in main method u r not creating the object of this class also the var array is not globally declared hence wont be accesibile outside
    u can try this modified code
    import java.io.*;
    import java.util.*;
    public class hostList{
    String[] array=null;
    public hostList()
    try
    File input = new File("hosts.txt");
    BufferedReader in=new BufferedReader(
    new InputStreamReader(new FileInputStream(input)));
    ArrayList list=new ArrayList();
    String line;
    while((line=in.readLine())!=null)
    list.add(line);
    array=new String[list.size()];
    list.toArray(array);
    in.close();
    catch(FileNotFoundException e)
    System.err.println("File not found...");
    catch(IOException e)
    System.err.println("IO Problem");
    }//hostLst()
    public static void main (String [] args){
    hostList h=new hostList();
    System.out.println("Array content:");
    System.out.println("array " + h.array[0]);
    }//main
    }//class

  • Studio Creator installation problem with Fedora 5

    Hi,
    I tried installing JCreator in Fedora core 5, but I get the problem concerning the graphical installation. I tried installing Jcreator in silent mode using the command line options -is:log log.txt �silent and a sp file which sets the installDir and is.debug to 1 , however the installation does not complete, properly and it does not install the SunAppServer8 directory

    I can't recall what they are, but I know that there are some libs that you need to install to get the Creator installation to complete OK on Fedora 5.
    I think that I ended up using some libs from either Fedora 3 or 4 since there were no Fedora 5 versions available for the two (and again, I can't recall what they were) libs.
    I do know that it is possible though as I have Creator on Fedora 5 right now.

  • Problem executing programs after instaling Studio 8.1

    I had JDK 1.5 installed on my computer. I earlier used to code my programs either in a text-editor or JCreator & run them from the command prompt.
    I recently installed Studio Enterprise 8.1. My programs execute successfully from the IDE. They also complie successfully from the command prompt. But whenever I try to run them now from command prompt or JCreator, I always get a
    Exception in thread "main" java.lang.NoClassDefFoundError: <class name>
    exception. Even when I am not using packages & the programs being run reside in the current directory only, where java.exe resides.
    Can somebody help me????

    The last few lines of the output are as follows:
    [Loaded java.util.zip.ZipFile$2 from shared objects file]
    [Loaded java.util.zip.Inflater from shared objects file]
    [Loaded java.lang.Math from shared objects file]
    [Loaded java.security.PrivilegedActionException from shared objects file]
    Exception in thread "main" java.lang.NoClassDefFoundError: sample
    [Loaded java.lang.Shutdown from shared objects file]
    [Loaded java.lang.Shutdown$Lock from shared objects file]
    There was a whole series of Loaded module above these, from which I could not figure out any problem.

  • The system cannot find the path specified - Problems

    I am having an issue that I am hoping someone can help figure out for me.
    I am currently learning Java, and am working with the Beginning Programming with Java for Dummies book second edition. I have downloaded and am running the Java 6 program and am using the JCreator 3.5Pro that was recommended to run the Practice files for the Dummies book.
    I have the practice files here:
    C/Program Files/Xinox Software/JCreatorV3/My Projects
    While trying to compile one of the practice files, I get this error message:
    --------------------Configuration: MyNewProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    javac: file not found: src_mynewproject.txt (The system cannot find the path specified)
    Process completed.
    **When I try to execute, I get this error message:**
    --------------------Configuration: MyNewProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    java.lang.NoClassDefFoundError: EchoLine
    Caused by: java.lang.ClassNotFoundException: EchoLine
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: EchoLine. Program will exit.
    Exception in thread "main"
    Process completed.
    When I set up the new file, and the new class, I confirmed the file path.
    I know most people will ask if I am absolutely certain I put in the code in properly, and yes I did. It was a matter of copying word for word, and punctuation. I did it 100% correctly. About 12 times. I have NO idea what this means, but I would REALLY REALLY appreciate any help on this.
    Please keep in mind, I am slightly clueless, and really need to have any help dumbed down a bit. Lol.
    As a side note, this isn't my first project, and I haven't had this problem before now.
    thanks in advance. =)

    So I wanted to clarify what I've done a bit more since I decided to redownload the dummies programs for the program and try again.
    I will try to list my steps in order of what I did and see if I've gone wrong somewhere along the line.
    I downloaded my project files from here: http://ca.dummies.com/store/product/Beginning-Programming-with-Java-For-Dummies-2nd-Edition.productCd-0764588745,navId-322469,descCd-DOWNLOAD.html
    I unzipped them this time here: C:\Program Files\Java\jdk1.6.0_21\MyProjects\
    I opened JCreator 3.5 and starting fresh, with all previous projects deleted and clicked on "Open Workspace". I chose "MyWorkspace.jcw". Right clicked MyWorkspace and chose "Add new Project" and then chose "Empty Project". As per the books instruction for the first project, I named it "MyFirstProject". My file path was: C:\Program Files\Java\jdk1.6.0_21\MyProjects\MyFirstProject. Which is where I upzipped the files. I added it to current workspace and clicked finish.
    I then added a new class. As per the books instructions, I right clicked "MyFirstProject" and selected Add New Class. For the name, I used MyFirstJavaClass, which is what the book told me to do. My locations are the exact same as above. and I clicked on Generate new Method, as it told me to. Which it doesn't in the next few lessons, so I know this has nothing to do with it. For that and a few other reasons. Lol.
    I clicked on Finish.
    All I had to do was replace a single line of code. Not type it all in this time.
    Here is what shows up on the screen:
    class MyFirstJavaClass {
         * Method main
         * @param args
         public static void main(String[] args) {
              // TODO: Add your code here
    I need to change the : // TODO: Add your code here
    with the line:
    System.out.println.("Chocolate, royalties, sleep");
    When I do this, and compile project, I get this:
    --------------------Configuration: MyFirstProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    javac: file not found: src_myfirstproject.txt (The system cannot find the path specified)
    Process completed.
    AGAIN! But it worked a few days ago.
    And when I execute, I get this:
    --------------------Configuration: MyFirstProject - JDK version 1.6.0_21 <Default> - <Default>--------------------
    java.lang.NoClassDefFoundError: MyFirstJavaClass
    Caused by: java.lang.ClassNotFoundException: MyFirstJavaClass
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: MyFirstJavaClass. Program will exit.
    Exception in thread "main"
    Process completed.
    I really hope the extra info helps someone help me!
    thank you!
    Edited by: MissPamela on Jul 19, 2010 3:23 PM

  • When right-clicking on a link menu briefly appears then disappears. It still works if you can remember how far down to go to reach the "invisible" options. Anyone else having this problem? Is not happening with IE on same computer.

    Recently installed Amazon Uploader and Downloader, and downloaded MP3s from Amazon. My personal computer is connected via Internet to a corporate network; (corporate) SOPHOS and Malwarebytes Pro for virus protection. Recent scans show no infections. I cleared history, cookies, etc. Running Windows 7 and current version of Firefox. Not having problem on IE 8, or with any other apps. Have not installed any other applications, but did install a JAVA update yesterday. Did not help the problem.

    Ya actually i did ask here :P And no one offered to help :(
    Well i shouldnt say that, all anyone said was to read the java api's.... When all i needed was to learn how to make the link to process input to a database by a servlet.
    Anyway thats why i posted this here, in case anyone needs help on the same issue as i did.
    And i dont make jsp's by hand.
    I currently use for my developing
    Dreamweaver mx 2004
    Firewords mx 2004
    Flash mx 2004
    MySql db
    JCreator for all the bean and java's
    =D
    That way there is minimal hand coding for html/jsp pages.

  • Problem while copying Text from Jtext Area ..

    I am trying to copy text from a JtextArea onto any Text Editor .. What happens is that the pasted text in the Text Editor eg : TextPad, JCreator etc .. has extra Carriage Return appended at the end of everyline (line separator to be exact).
    Eg :- Actual Text on Text Area :
    Executing PU for PMGS.................
    Completed PMGS PU successfully.
    - When Pasted on a Text Editor Blank Document becomes :
    Executing PU for PMGS.................
    Completed PMGS PU successfully.
    I am not being able to understand how this extra CR (Carriage Return gets added .. Looking for an urgent solution to this problem ,,

    rathor5 wrote:
    When I am copying a song from my pc to lumia 620 . It automatically create 3 or 4 links of that song in "music+video" hub . I have already refreshed my phone but the problem is still persists.
    Do you already have the amber update on your Lumia? Pre-amber solution for that is to perform a complete hard reset of the device - so make it sure to do a backup first.
    Good luck

  • Compling files not working... (using JCreator)

    Hi to all
    I started learning Java few days ago, and when i started using JCreator the complier stop working.
    I downloaded jdk1.6.0 and installed and Java docs too.
    I configered in JCreator the path of the java files.
    and when i try to run somthing this is the error msg:
    --------------------Configuration: First - JDK version 1.6.0 <Default> - <Default>--------------------
    java.lang.NoClassDefFoundError: ListFiles
    Caused by: java.lang.ClassNotFoundException: ListFiles
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: ListFiles. Program will exit.
    Exception in thread "main"
    Process completed.
    PLZ someone help with this one... what is the problem??

    tried to unistall JDK... during the uninstal - there is an error... :\
    but i uninstalled JCreator and same problem......
    plz help me figure it out....
    --------------------Configuration: <Default>--------------------
    java.lang.NoClassDefFoundError: ListFiles
    Caused by: java.lang.ClassNotFoundException: ListFiles
    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    Could not find the main class: ListFiles. Program will exit.
    Exception in thread "main"
    Process completed.
    Edited by: 810372 on 10:40 13/11/2010

  • How to run jFram created by Netbeans in the command line or Jcreator

    Dear Friends
    I have designed a fram in Netbeans and the fram have many Jbox and Jcheck Boxes and Text areas. Net beans uses it is oun library. However after I used the facilities and finished the design I am looking to run it in faster IDE, such as Jcreator.
    The problem is that Netbean uses its library and Jcreator is not identifying it. My question, How to have it working else outside netbeans.
    here is the main problem, not sure how to have it available out side netbeans,ext such as
    getContentPane().add(jTextField11, new org.netbeans.lib.awtextra.AbsoluteConstraints(860, 120, 50, 20));
    Thanks for any help

    Dear Friends
    I have designed a fram in Netbeans and the fram have
    many Jbox and Jcheck Boxes and Text areas. Net beans
    uses it is oun library. However after I used the
    facilities and finished the design I am looking to
    run it in faster IDE, such as Jcreator. This is bullshit. You shouldn't run apps from within an IDE. And there's certainly no speed difference for your app.
    The problem is that Netbean uses its library and
    Jcreator is not identifying it. My question, How to
    have it working else outside netbeans.Import the library orjust use standard classes.

  • Having problem with getRaster( )

    I'm having a problem using Raster for thresholding...
    I declare picture as ...
    BufferedImage picture;
    In public void init() , I have this codes...
    picture = getImage(getCodeBase(),"bear.gif");
    WritableRaster wraster = picture.getRaster();
    however I get an error
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\slider\Slider.java:44: incompatible types
    found : java.awt.Image
    required: java.awt.image.BufferedImage
              picture = getImage(getCodeBase(),"bear.gif");
    ^
    Is there a way to obtain "bear.gif" in an appropriate manner which matches Raster implementation? This is my first time using Raster and I am not very sure about the Raster class works. If I declare the picture as
    Image picture;
    I get this error msg ...
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\slider\Slider.java:46: cannot resolve symbol
    symbol : method getRaster ()
    location: class java.awt.Image
              WritableRaster wraster = picture.getRaster();
    ^
    Anyone have any idea how to fix either one of this problems? Thank you for your time.

    (continued)
                   ImageIcon ii;
                   int i = MediaTracker.LOADING;
                   ii = new ImageIcon( mstrFile );
                   ii.setImageObserver( mfp );
                   while( i == MediaTracker.LOADING )
                        yield();
                        i = ii.getImageLoadStatus();
                   if( i == MediaTracker.COMPLETE )
                        Image im = ii.getImage();
                        int iW = -1, iH = -1;
                        while( iW == -1 || iH == -1 )
                             iW = im.getWidth( mfp );
                             iH = im.getHeight( mfp );
                             if( iW == -1 || iH == -1 )
                                  yield();
                        }Now that I have the image (and I know it's fully loaded) and its dimensions I draw it into a BufferedImage so that I may call getRaster(). Note that you need the image's dimensions to create a BufferedImage object of the appropriate size.

  • Why the output file invisible from JCreator??

    i developed a program with JCreator. with the program, i intend to write something to an output file with the codes like:
    FileOutputStream fos = new FileOutputStream("output.txt");
    DataOutputStream dos = new DataOutputStream(fos);
    for(int i=0; i<10; i++){       
    String s = i+" ";           dos.writeChars(s);
    fos.close(); dos.close();
    how come when i open the output file from JCreator, i can not see anything there? yet, when i directly open the file "output.txt" from the directory storing the program source codes in the operating system, the output string "0 1 2... 9" is visible.
    quite confused! could you please illumine?

    I am not sure of my facts but I think the problem is as follows. DataOutputStream writes bytes of primitive information. You can use the method .writeUTF() which is an ASCII-compatible encoding, instead of .write().
    However textual output should be done with PrintWriter (or PrintStream in Java 1.0). JCreator is expecting ASCII or text to read.

  • Problem with Importing Packages

    I have a file which has several classes and an interface. The first line is package ImageSequence; . It is saved in a file called ImageSequence.java. I have another file in the same directory that has include ImageSequence.* as the third line. I get an error that the package is not found. What is wrong?

    Thanks, but that still doesn't solve the problem. I have this code:
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import ImageSequence.*;
    public class ImageSequenceTest extends JComponent {
         public static void main(String args[])
              new ImageSequenceTest();
         public ImageSequenceTest()
              Toolkit toolkit = Toolkit.getDefaultToolkit();
              Image i1 = toolkit.getImage("ImageSequenceTesti1.gif");
              Image i2 = toolkit.getImage("ImageSequenceTesti2.gif");
              Image i3 = toolkit.getImage("ImageSequenceTesti3.gif");
              Image i4 = toolkit.getImage("ImageSequenceTesti4.gif");
              Image i5 = toolkit.getImage("ImageSequenceTesti5.gif");
              Image i6 = toolkit.getImage("ImageSequenceTesti6.gif");
              Image images[] = new Image[] {i1, i2, i3, i4, i5, i6};
              ImageSequence is = new ImageSequence(images, 50);
              JFrame frame = new JFrame();
              frame.setSize(100, 100);
              frame.getContentPane().add(is);
              frame.setVisible(true);
              is.setRepeat(true);
              is.start();
    }When I try to compile it, I get these error messages:C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:22: cannot resolve symbol
    symbol : constructor ImageSequence (java.awt.Image[],int)
    location: class ImageSequence
              ImageSequence is = new ImageSequence(images, 50);
    ^
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:25: cannot resolve symbol
    symbol : method add (ImageSequence)
    location: class java.awt.Container
              frame.getContentPane().add(is);
    ^
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:27: cannot resolve symbol
    symbol : method setRepeat (boolean)
    location: class ImageSequence
              is.setRepeat(true);
    ^
    C:\Program Files\Xinox Software\JCreator LE\MyProjects\ImageSequenceTest.java:28: cannot resolve symbol
    symbol : method start ()
    location: class ImageSequence
              is.start();
    ^
    4 errors
    When I get rid of import ImageSequence.*; and copy the code for the ImageSequence class from the package into the file, everything works.

  • Jcreator hangs every few minutes

    it hangs at random intervals. I don't know why, I've tried reinstalling it but it still happens.

    I think JCreator 2.5 is rather old, so i think it was designed for Window 98/ME/2000
    The current version is 3 (i think)..so you should upgrade to te latest version....beside..it's much better...more control over the IDE and lots of new features (code-folding, better output window, code-insight, etc..)
    however, i have used JCreator 2.5 on Window 2000 and XP and have no problem with it hanging on me.
    my only thought is this:
    1) you created an application using JFrame)
    2) you ran the application
    3) you click the frame "x" close button, but there's no code to handle WindowClosing
    This result in the frame being close, but the java process is still running
    If this is the case, you have the following option:
    1) ctrl-alt-del to bring up task manager..and click the "process" tab. Find java.exe process and kill it.
    2) add a windowlistener to the application (best solution) to exit the program gracefully.
    3) upgrade to JCreator 3
    4) find another IDE (JavaBeginner/JEdit)

Maybe you are looking for

  • Error while creating PR

    Below is the error while creating a PR. Plz suggest. Period 005/Fiscal Year 2008 for  not open for FM posting in value type 50 Message no. FI_E018 Diagnosis Posting for the document of value type 50 was attempted on a date that has not been opened in

  • PO error message.

    Hi people, I'm tryin to change a Error message to Warning on PO, when the Vendor of the header is not equal the Vendor of the Item . I changed the message when I insert the 1st contract item, but when I insert the 2st item the error appears again and

  • Windows 7 or 8.1 for new laptop?

    I'm close to buying a new laptop based on a 4th gen i7 and an Nvidia GTX, primarily for general personal use and some home music production. I also need it as a capable emergency/portable CS6 editing backup to my Xeon Win 7 desktop system.  I can cho

  • Update photo/badge in game center

    How can i properly update my photo/badge through Game Center in my Ipad? I'm an Asphalt 8 Airborne player Usually the badge is simple and updates automatically, but i've been trying to use a photo and when i change it it never uptdates. Would someone

  • Audio glitches/drop outs with Guitarport/Gearbox

    I'm using Guitarport with the Gearbox software. My speakers are plugged into the headphone jack of GP, and I'm using GP/Gearbox as my default audio. The problem is that whenever I do this, there are audio problems, such as glitches/skips/drop outs. H