JGRASP 1.8.3 Help me set up class Path

I have a package called jpb in a folder called jpb with two files: SimpleIO.java and Convert.java. I want all my .java files to be able to see these files every time I compile. I tried apprehend the path to C:\jpb but Jgraps keeps complaining the package doesn't exist. WHat can I do?

Learning to know how classpath works is essential to Java programming. Your First Cup of Java

Similar Messages

  • OK - I can set the Class Path. Now - what else?

    Dear all,
    I read with interest the many posts in this forum debating whether to use an IDE for your Java development, or to use some other (more primitive????) means of crafting code - notepad for example. As I understand things:
    If I use notepad and the command line to build, run, and compile my classes, then I will hopefully come to learn and understand how to set my class path correctly, and gain an insight into the environment in which I work - an insight moreover, that I might not happen upon if I leave an IDE to do all this for me. Ok - fine, I can use my IDE, but also do some testing on the command line to fill this gap in my knowledge.
    If I use an IDE to help me build my UIs, then it is more than likely that I will progress through life without a profound knowledge or understanding of layout managers, cell renderers, event handelers etc. OK - this is fine too, and I have decided to craft my UI 'by hand' because I want a broad appreciation of Swing and anyway, after the initial pain (akin, I imagine, to child birth), it's not so bad really.
    Now I feel I am cooking. I understand my environment, and the more esoteric features of Swing; I use my IDE to fashion my code - it's cool and helps me with code completion, and direct access to the API documentation as I type, and it does a whole bunch of refactoring stuff too.
    I feel as if I am getting the best from both worlds now.
    Would anyone argue against an approach such as this?

    ChuckBing wrote:In general, a good approach. You're correct, using the IDE will make life easier.
    What you have to watch out for is using it as a crutch. If it ever does something that you can't do, or don't know why it's doing "that", then you aren't learning. The next time "that" has to be done, if the IDE isn't available to do "that" for you, you're dead.
    Then you'll be posting the "how do I do that outside the IDE" question here.
    Make a promise to yourself: You'll learn why and what the IDE does, and read the API's - A lot!Yes, I agree Chuck. I am not comfortable with a tool doing something for me which I don't understand; which is one of the reasons I build the UIs by hand.
    I also become somewhat downcast when I see people in the forums requesting code so they can simply paste it into their aplpications. Learning can be painful, but it is a necessary pre-requisiite to knowledge in my view - so copy/paste can be a most harzardous thing.
    I am hoping this thread will be a small guide to new folk.
    Thank you for your input,
    Steve

  • Simple question about environment variables and setting the class path???

    ok I have been trying for a few months now ontrying to set the class path..
    I work with windows vista..
    on the environment variables user variables,
    I have the name of the variable as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    where javac is...
    on the system variables I have
    its name as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    why is this not reading javac

    The PATH environment variable should have as an entry the directory containing your javac executable. The CLASSPATH should have have entries which define your library directories and entries which are your jar file libraries. In the early days, probably the only CLATHPATH entry you will need will be a '.' to indicate the current directory.
    The Java tutorial covers ALL of this.

  • How to set the class path?-

    my forlder is :C:\Documents and Settings\india
    jdk is in:C:\Program Files\Java\jdk1.5.0_11\bin
    can any body can help me to create a classpath for my folder?

    An alternative - as stated in reply 2 in your other thread on this topic: http://forum.java.sun.com/thread.jspa?threadID=5170470 - is not to set the CLASSPATH environment variable at all. Use the -classpath switch instead.
    As the documentation linked to in that reply points out: "The class search path (more commonly known by the shorter name, "class path") can be set using either the -classpath option when calling a JDK tool (the preferred method) or by setting the CLASSPATH environment variable. The -classpath option is preferred because you can set it individually for each application without affecting other applications and without other applications modifying its value."
    As always, the documentation is worth reading; the available command line options worth using.

  • How to set a class path in atuoexec.bat

    hello friends,
    How to set a classpath in autoexec.bat file. pls sent a path setting techniques to me.
    my JDK1.2 in "c dirve" so what can i do
    help me
    davipet

    What is your OS?
    If it is 95 or 98,
    add SET CLASSPATH=C:\Jdk1.2\lib\tools.jar;.; to your autoexec.bat file.

  • Setting the Class Path

    Hi guys,
    I am having problems using Textpad to run my java programs. It compiles java programs, but it doesn't allow me to run the programs. It comes up the error;
    Exception in thread "main" java.lang.NoClassDefFoundError: HelloApp1
    I was having the same problem when I tried to run my java programs on command prompt. To solve this I resorted to using -cp to set the classpath to the directory where my java apps were located. The path in the environment variables is pointing towards my java bin directory, so that isn't the problem. Can someone tell me how I can set my classpath permantly and where I should point the directory to, so that i can run my java progs on Textpad.
    Thank You
    Jaz

    Can
    someone tell me how I can set my classpath permantly
    and where I should point the directory toYou shouldn't use the CLASSPATH environment variable to run programs. You should always use the -classpath option for javac and java--even when you don't need to specify a path. If you don't need to specify a path, then write: -classpath "". The -classpath option overrides the CLASSPATH environment variable, which is what you want. Otherwise, you will never figure out how to compile different files.
    so that i
    can run my java progs on Textpad.
    I have a similar editor, and I was able to set it up to run simple, one file programs without package statements when I click a button. Your best bet is to find a Textpad discussion forum and ask how you can set it up to execute java programs. Or, check the help in Textpad.

  • How do i set thae class path

    i have a folder javaex and helloworld program is in this folder.but after compilation it is showing java.lang.NoClassDefFound error..so how to set the classpath in windows just tell me

    no, it's not your path, it's my path.

  • How can I set Java class path right?

    After I downloaded Java Developer for 10.6 (10M3239a) (Disk Image) 139.4 MB,
    when I opened eclipse it showed 2 errors
    The project cannot be built until path errors are resolved
    Unbound classpath container: 'JRE System Library [Java-1.7]'
    how can i resolve this problem.
    can someone please help me, i am really new to these stuffs.

    I have the exact same problem. I'll try to find out but if someone could help us it would be grate.
    In my error message it says:
    The project cannot be built until path errors are resolved
    Unbound classpath container: 'JRE System Library [JavaSE-1.6]

  • Help setting Class Path

    hi,
    I just downloaded and installed JDK 5 update 7 and need help setting the class path. Can someone give me instructions on how to do this in windows XP please.
    Cheers

    thanks for the replies guys.
    I'm still having problems. What I want to be able to do is compile a .java file using the Command Prompt in windows XP.
    Currently, when I type javac I get the message:
    'javac' is not recognized as an internal or external command, operable program or batch file.I set the classpath to C:\jdk1.5.0_07\bin\ but when I type path in the command prompt this path doesn't appear.
    If I change the directory in the command prompt to C:\jdk1.5.0_07\bin\ then type javac it works (I get a list of commands) but I need it to work from within any folder.
    Have I set the classpath incorrectly or is it something else?
    Thanks

  • How to set class path for mysql

    hai, I have been trying to make a java program read from mysql database. but i don't know how to set the class path for mysql-connector-java-5_1_.0.6-bin. i set the class path in system variable as C:\Program Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-java-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java and run java abc.
    when run it come out error java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.

    hai, I have been trying to make a java program read
    from mysql database. but i don't know how to set the
    class path for mysql-connector-java-5_1_.0.6-bin. i
    set the class path in system variable as C:\Program
    Files\Java\jdk1.5.0_08\jre\lib\ext\mysql-connector-jav
    a-5_1_.0.6-bin.
    in the command prompt, i compile C:\javac abc.java
    and run java abc.
    when run it come out error
    java.lang.ClassNotFoundException:
    com.mysql.jdbc.Driver
    i am using Window xp. can anybody help me??? TQ.Right click on my computer icon,
    Goto properties->advanced->environment variables.
    Look for 'classpath' under system variable.
    Select it and click edit.
    put ';' and path of the mysql connector jar at the end
    suppose if u have jar file under d:/driver/mysqlconnector.jar
    thn put this value in variable value text box
    ;d:/driver/mysqlconnector.jar
    or simply put ur driver jar file in jre/lib/ext folder
    D:\j2sdk1.4.2_03\jre\lib\ext
    [Servlet tutorial|http://www.jsptube.com]

  • How do I set class path for 3rd-party classes?

    Hello, I need to know how to set the classpath so that I can use the apache's third-party lang classes. I downloaded commons.apache.org/lang/download_lang.cgi. And I need to know next steps. Move the unzipped files to which location? And type what commands?
    Thanks, Melissa

    Hi, it's not the server that I am running. My instructor told me to download an apache class file for the Apache Lang library and then set my class path to point to the executable. Her instructions are for Windows users, however. I need to do something in the terminal shell but I don't know precisely what.
    mg

  • Regarding class path setting

    Hi,
    I am new to java How can i Set a class path in my sytem to run java programs and tomcat and ant .
    I declated like below in Environment varialble.
    JAVA_HOME
    c:\javasdk\jdk\jre\ext;C;\javasdk\bin;
    ANT_HOME
    c:\ant\bin;
    CATALINA_HOME
    C:\tomcat\bin;c:\tomcat\common\bin;
    when I am running the startup.bat in commandprompt the it showedd me aan error like this.
    CATALINA_HOME environment variable is not deffined correctly, this environment variable is needed to run thhis proram.
    when I am running the ANT then it showed me an error like this.
    build.xml file does not found. But i Wrote the build.xml file in ant\bin.
    Please let me know the where is sthe mistake. It is very urgent to me.

    I love all these questions that go "I'm really new to Java, so new I don't even know how to set or use a classpath. How do I get my application server to work?"
    Like a first-week med student trying a heart transplant

  • HT201209 Hey guy I need to help please set balance my app id = 0

    I need to change location my id but I can't make because I have  point
    In store please help me set my point app id to null thk
    <Subject Edited by Host>

    You will need to Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • I took my iMac to be fixed and when i got it back, mail was not set up. I called Apple Support and they helped me set up mail. Then the emails went to trash on the iMac and on the MacBook Pro (same emails). There are no numbers by the 'inbox' to tell how

    I took my iMac to be fixed and when I got it back, mail was not set, so I called Apple and they helped me set up mail. Now the new mail goes to trash and there is no number by the 'inbox' to tell me how many new messages I have. I cannot save a draft to 'drafts.' There is a large number by 'trash' (I think all mail went to trash - including drafts). When I send myself an emai, it goes to trash also. This is on both my iMac (the one taken in) and my MacBook Pro (same emails) which was not taken in.
    I went to 'rules' but have no idea what to do there. There are no rules in the rule box. When I click 'add rule' it puts 'rule 1' in the rule box, but since that was not there when I took it in, I delete it to have an empty rule box.
    Can someone pleasehelp me. I am completely stupid with all this. Do not under stand what is suppose to be set up in 'rules.'
    Thank you so much,
    Arudi

    Now new mail is coming to both computer's inboxes but there is no number on the stamp icon on dock to show number of emails on the iMac. Nor is there a number by either email address under MAILBOXES/inbox (sidebar) on the iMac. This number is showing on MacBook Pro.
    I also can save drafts now on both computers.
    Seems the Pro is fixed and the iMac is only missing the numbers on dock icon and by addresses in inbox.
    Now that the problem is less, I feel i am wasting your time but will continue so maybe I can get those numbers back.
    Two emails > AT&T email and gmail.
    Apple's Mail program for email - yes, and gmail.
    IMAP for both accounts.
    Did not change mail configuration on MacBook.
    The iMac and MacBook Pro have the same mail configuration except in Accounts/mailbox behaviours/store draft messages on the server was not marked on MacBook > it is now.
    'Store junk messages on the server' was marked on one computer for gmail, but is unmarked on both now.
    On the iMac, Accounts/Accounts info/Outgoing mail for gmail is smtpgmail.
    On the MacBook Pro for gmail it is smpt.gmail.com (plus) my email address.
    Rules/Add rule window, on the MacBook third line is 'Any Recipient', on the iMac third line is 'From."
    The last box on that line has my email address on the MacBook.
    The last box on that line has the last address I sent an emil to (last night), on the iMac.
    On the last line on iMac, no box was selicted for 'to mailbox' > I choose 'inbox' because it is on the MacBook Pro.
    Now I have a Rule #1 and am not sure I should have because there was no rules marked when I took the computer in.
    Thank you. I relized I had done the labeling wrong when so much of my question appeared twice and no one else's did. I know how to do it now.
    Thank you so much,
    Arudi

  • Help needed setting up print server

    i got 2 printer:
    1 usb inkjet epson 1290
    1 hp5100 network
    i have 1 server:
    serving epson for our col proof using powerripx as driver and shared via os x print server
    i have 2 network interface card on the server.
    my problem is: the position of the server in the office has only one network interface port, i want to have my HP connected to the 2nd network interface of the server and the server connected to the only available network point there and thus have the server serving both printer.
    have set up the en1 interface, enable NAT, dhcp, firewall, but the server itself does not recognised the hp which is connected to the 2nd ethernet interface. when i move it on top of the ethernet list in system preferences it does recegnised it but the the whole print server is not accessible on the network.
    can someone with more experience help me set this up.
    thx

    I didn't say it's impossible. I just offered an easy solution to your problem that will save you and you users some hassle in the long run (eg. when you come to troubleshoot you wn;t have to look at 2 networks and a firewall). I guess I just like easy solutions. And ,dude, 20 bucks...
    If you want to go the hard(er) way you need to:
    1. set up a second network address range on the second card
    2. give the printer a fixed IP address within that range
    3. ensure firewall is not blocking packets from/to the printer
    4. config the printer on your print server & clients
    hth,
    b.

Maybe you are looking for

  • Can't buy songs via older version iTunes

    I passed down a generation one Shuffle to another family member for use on the G4 Cube with OSX 10.2.8 Upgraded the iTunes on the cube to 4.7.1. Got the Shuffle restored and visible in iTunes, but cannot buy songs without the the Store wanting me to

  • Line using cursor in xy graph

    hi how i can draw line using cursor in xy graph Solved! Go to Solution.

  • ISA Framework: java.lang.StackOverflowError

    Hi When i search for product it shows me  5 products per page Now I say click on NEXT some time it show or otherwise displays error in CRM5.0 ISA B2B "ISA Framework: java.lang.StackOverflowError" Details:   No details available Give me suggition to r

  • One more noob question, after effects hates me today

    So I used to be able to move the crusor left and right and watch my animation happen on the comp and now that no longer happens.  I also used to be able to scrub a vaule like position and it would show the change on the comp in reall time while I scr

  • Is it possible to hav 2 rows displayed with diffeent columns?

    I I do a search and try to display information from 2 different tables but they hav different columns is it possible to have 2 tables? like table 1: name ID a 1 b 2 table 2: name Email a w b e if i search for "a" can i get: name ID a 1 name Email a w