Problems with path

Alright guys I got a book on java and I'm trying to learn but things aren't going too great. My first problem is the path.
I understand that i need to change something under Environmental Variables but I do not understand if I need to make changes to path or CLASSPATH.
Secondly, I am having the most amount of trouble getting the location of the bin. When I access it through my computer----> C drive etc. it says that the location is C:\Program Files\Sun\JavaDB\bin. I am not sure this is correct because everyone else had their version in it and mine doesn't. It may be that I am looking in the wrong place, I am not sure. The location I listed above is just the location of an item in a folder called bin. Also, I am running vista so would that make a difference of where it is stored.
Thanks for all your help.

I'd start by downloading [Sun's JDK|http://java.sun.com/javase/downloads/?intcmp=1281], rather than anything and working through the Tutorial.
The tutorial has step by step instructions on how to compile and run a simple program. (And links to the download and installation instructions should they be needed.) There is a discussion about setting operating system variables, but don't go setting these things randomly: follow the steps as given in the tutorial and consult the "Common Problems (and their solutions)" link if you need to.

Similar Messages

  • Problem with Path Managed property in alternate zones - also we have identified problem with Product catalog in alt zones

    Hi All,
    I'll start "one step back". Note we have resolved this issue but it is worth mentioning:
    Yesterday we set up the product catalog. We were having a lot of inexplicable problems with it initially. After much troubleshooting, we found that it was because we were browsing the SharePoint site via the "Internet Zone" rather than the "Default
    Zone" when we "Connected" our site to the product catalog. Issues experienced:
    1) "Catalog Item URL Format" displayed error "Properties <Managed Property> specified by the shared catalog could not be found in the search schema" when attempting to connect to the catalog, despite that managed property being
    configured correctly. The catalog would connect despite the error, and the navigation worked fine.
    2) The search Result Source for the catalog would not return any results. Configuring the query and selecting "Advanced Mode" would show SPSiteURL:http://externalURL.domain.com. Changing SPSiteURL manually to
    http://InternalURL resulted in results being returned as expected.
    After much troubleshooting, we found that if were browsing SharePoint using the default zone (http://InternalURL) when we connected the Product Catalog, the result source then worked properly (internally and externally).
    Ok, so now onto our current problem:
    The Product Catalog appeared to be working properly (internally and externally) after figuring out that we needed to connect it from the Default Zone. However, we have found a remaining glitch, which doesn't appear to be Product-Catalog-specific. Consider
    the following scenario:
    1) We click a category in our Product Catalog, such as Electronics
    2) A list of our electronic devices are presented via the "Category" display page
    3) If we click on a specific item, a different URL is returned internally vs externally. We only get the friendly managed navigation URL when browsing via the Default zone. And of course totally different pages load based on which URL you get.
    Internal (when browsing via Default zone):
    http://InternalURL/catalog/PRODUCT-CATEGORY/PRODUCT-NAME
    External (when browsing via Internet zone):
    http://ExternalURL.domain.com/catalog/Lists/Products/DispForm.aspx?ID=1
    We have reviewed the display template, and the "Path" managed property is simply being used to render the link. Furthermore, we have configured the Content Search web part's "Property Mappings" to show the "Path" MP, and it
    displays the same (wrong) result externally.
    This tells us that the Path MP is not correctly rendering "Friendly URLs" when using managed navigation.
    Any help/ideas?
    Our environment:
    SharePoint Version: 15.0.4667.1000
    Default Zone: http://InternalURL
    Internet Zone: http://ExternalURL.domain.com
    We are NOT using host named site collections
    We ARE crawling the Default zone URL in our content source
    Thanks,
    Tommy

    Hi,
    We have now also observed the same issue with a Managed Property of type “Hyperlink/Picture”. The picture returns the wrong URL externally.
    This post describes the same issue, however the poster found that setting UseAAMMapping=True doesn’t work in 2013:
    http://sharepoint.stackexchange.com/questions/104806/set-the-useaammapping-property-of-a-managedproperty-object-map-an-url-of-a-h
    We checked, and our Picture MP had UseAAMMapping=False. We set it to True, did a full crawl, and see no change in behavior. Path already had UseAAMMapping=True.
    More info:
    http://macslui.blogspot.com/2013/02/sharepoint-2010-problem-in-image-result.html
    https://camerondwyer.wordpress.com/2014/08/04/beware-sharepoint-2013-search-results-and-the-listurl-property/#comment-2606
    Thanks,
    Tommy

  • Problem with path length when using oracle drive

    Hello!
    Does anybody else experience this problem with Oracle Drive?
    When I create a deep or nested hierarchy in which the path length is longer than 250 (the limit might be 255) characters, I cannot access the deeper subpages.
    Example:"X:\INET\START1\pfadlaengentest\das istein langer ordnername mit etwa 50 zeichen\and this is another veryveryvery long\and this is another veryveryvery lon2\and this is another veryveryvery lon3\and this is another veryveryvery lon4\and this is another veryveryvery lon5".
    I can access the page "and this is another veryveryvery lon4" but not "and this is another veryveryvery lon5"
    Is this problem due to WebDAV?
    What can I do - I think it is a critical error / bug?
    Regards Joerg.

    I opened a service request and oracle support could help me.
    The problem is the windows file system: the path length cannot be longer than 256 chars.
    There's a workaround with MS-Webfolders.
    More information is available via metalink: watch out for SR-Number 5659267.992.
    PS: Thanks to Bert
    bye :-j (joerg)

  • Measurement data and problem with path selection

    Hello,
    I have a problem with the measurement data function; My instrument is the "Hyoki 3532-50 LCR meter".
    I´m tring to save the data in a text file using the "write to measurement file VI" . From the instrument i receive an array containing the data of the measure and then i use a for loop to obtain the single data obtainig the dynamic data necessary like input in the VI function. 
    The problem is that i receive ( for example) the Rp data and the Cp data in two separate moment and the result using the VI is something like
    1      56
    2      68
    3      95
    1      0,12
    2      0,30
    3      0,56
    (this is a stupid example to explain my situation)
    What i would like to obtain is 
    1      56   0,12
    2      68   0,30
    3      95   0,56
    The fact that i can+t receive all the three dynamic data in the same moment present also the problem that i don´t have the possibility to save in a different file every time i start the measure but to do it i have to reset the labview program ( this is due to the fact that in the property  i select "ask only once" because otherwise if i select " ask at each iteration" the second data flow overwrite the file) .
    If you need some image from code i can provide them 

    You really need to attach some code. We are graphical programmers and don't undestand longwinded text explanation
    Also the code images you attached earlier are useless. The abundance of local variables, stacked sequences, express VIs, and dead code make them impossible to debug by looking at a picture.
    LabVIEW Champion . Do more with less code and in less time .

  • Eclipse: Problem With Path Variable

    I'd be very grateful for any help with this....
    I have an app that runs fine from the windows shell but errors when
    run through Eclipse (even though I'm using exactly the same class
    files in both cases). The error I get is:
    native lib 'hrtlib' not found in 'java.library.path':
    C:\j2sdk1.4.2_04\bin;.....
    It goes on to list all the directories in my path, including the one
    that contains the DLL. However, when I do echo %PATH% from the
    windows shell, I get a slightly different output than Eclipse's: some
    directories are listed twice in the windows shell output, including
    the directory in question, which is listed first and then again in the
    same place where Eclipse lists it. Not sure if this is related to the
    problem or not.
    Any ideas what could be going on?
    Thanks,
    John

    http://forum.java.sun.com/thread.jspa?threadID=579724

  • Problem with path (which contain spaces)

    Hi,
    Im having problems when I use getAbsolutePath() method when the path contains spaces, like "c:\Program Files"
    my app have a different behavior if its installed in a path like C:\myApp\
    The troubles occurs when I try to create a directory and create a new file in that directory, if path doesn´t contains spaces works fine.
    Any idea?
    Best Regards,
    JRaBBiT

    jRaBBiT wrote:
    Thank you for your reply but it doesnt answer my question.Because you did not provide enough information. That's why I asked for an SSCCE and asked you to indicate clearly exactly what is going wrong.
    It's like you went to the doctor and you said, "Doctor, I have pain," and he said, "Where do you have pain?" and you said, "Thank you for your concern, but you haven't cured me yet."

  • Problem with path and compiling

    I am trying to compile a class where I have and object I created as well. It complains that it cannot find that object (or class in the classpath) and fires this error when I try to compile:
    Error: csci5433.database.animals.Pets.customerName is declared to be of type csci5433.database.customer.Customer and class csci543
    3.database.customer.Customer can't be located in the classpath.
    Now, when I add the class file to the classpath it fires this other error:
    Exception in thread "main" java.lang.NoClassDefFoundError: and
    Customer class does not have a main method or anything of the like and when I compile that class it compiles without problem.
    Thanks!

    You don't put full paths to class files in the classpath. You just put in jar files and directories that hold the classes. And the directories should reflect the package structure. So if there's a file c:\monkey\cow\Horse.class, and Horse is a class in the package "cow", then the classpath should include "c:\monkey", and that's it. It shouldn't include c:\monkey\cow\ or c:\monkey\cow\Horse.class.
    Also try to remember that most things in java take class names, not file names. In the above example, the full name of the Horse class is "cow.Horse". Except for the compiler, one almost never mentions filenames.
    So I'm guessing that you specified the classpath incorrectly, and you created your jars incorrectly.
    I'm still confused why the compiler would say:Exception in thread "main" java.lang.NoClassDefFoundError: andWhere did you ever use the word "and"?

  • File Problem with path

    File anxmlfile = new File("TheXmlFile.xml");This throws filenotfoundexception while this
    File ko = new File("D:/Test/TheXmlFile.xml");
              works..
    the class that opens the file is in the same folder as the xml file.
    What do i put in the constructor so that it looks in the current directory of the class?

    File anxmlfile = new File("TheXmlFile.xml");This throws filenotfoundexception while this
    File ko = new File("D:/Test/TheXmlFile.xml");
    works..
    the class that opens the file is in the same folder
    as the xml file.
    What do i put in the constructor so that it looks in
    the current directory of the class?is your class in a package? if so, that's your problem. don't put the file in the directory where your class lives, put it in the root of your package hierarchy

  • Problem with PATH

    I can compile my source code using javac from the command prompt but only if I type the full path out evey time. I tried to change my environment variable in the control panel but whenever I open the command prompt and type "path" it returns path(null). What can I do to set the path permanently.
    My path I type when in prompt to use javac is: \J2SDK_Forte\jdk1.4.0\bin\javac
    This works fine.
    The path I am putting into my "path" user variable in environment variables is:
    C:\J2SDK_Forte\jdk1.4.0\bin;
    Please help!

    Are you changin the PATH variable in the System Variables Area rather than the User Variables Area

  • Problem with Class and Classpath

    Hello ME Windows Users, now before you place a wry smile on your face, I have a problem with path and classpath. Stop it, I can see you smiling!
    By visiting the the last 10 pages of the forum and reading Sun installation notes, some tooldocs and by given some answers by some nice people, I have become an expert in turning off my computer, about 10 times/hr. I still am trying to make my first cup of java.
    With the ME computer,
    I'm unable to right click on the desktop and go to properties, advanced,
    I'm unable to go go start, run, sysedit,
    I'm unable to change the ms-dos window of autoexec.bat, it just shuts down.
    Now before you tell me, I should of bought a different computer, the only place I can find to modify the path and classpath is in the environment which is in system configuration under tools. Here I have placed numerous configurations, like
    C:\java>set path=%path%;c:\j2sdk1.4.2\bin
    C:\java>set classpath=%classpath%;.;
    ;java_dir\bin where ;java_bin is c:\j2sdk1.4.2
    .; java_dir\bin; %path% where ;java_bin is c:\j2sdk1.4.2 and the list goes on.
    But, I know you are still smiling, the % signs comes up in a dialog box, saying too many, and will not convert the text to the environment to be saved when I close down for the tenth time in the last hour.
    Can someone help me before I make a real cup of coffee and accidentally drop it on the ME box.
    Have a laugh on me Mik.

    C:\java>set path=%path%;c:\j2sdk1.4.2\binGood
    But it is no good because it has to many % and a dialog box appears, saying you have too many parameters.
    Are you saying I have to shutdown again to answer your ?
    From the HELP menu-
    To confirm startup commands line by line
    Click Start, and then click Shut down.
    Click Restart, click OK, and then press and hold the CTRL key until the Windows Startup Menu appears.
    Enter the number for Step-by-step confirmation, and then press ENTER.
    For each command you want to run, press Y.
    If the command runs successfully, you are prompted with the next command.
    If the command does not run successfully, you receive an error message.
    To skip a command, press N.
    Mik

  • Problem with include and relative path in jsp

    Precompile jsp with wlappc in 9.2, I got the error "The include file was not found" when the jsp use <%@ include file="../includes/dataEntry/code_error.html" %>
              This code used to work with 8.1. I notice that someone has report the same problem with 9.0 and you have patch for it. Is it fix in 9.2 or do I require a patch as well?
              Thanks,
              Khuemy

    When you precompile, can you say "Keepgenerated=TRUE". It might help you track
              down the difference with the URL. You should only get a 404 error when the
              resource is not found at runtime, which is independant of when you compile. The
              difference should be in how the URL is compiled.
              Chris
              ali wrote:
              > I am using WLS 6.0 SP1, when I use relative path in <jsp:forward> in my JSPs
              > it forwards ok if I am using directly JSPs but if I am using pre-compiled
              > JSPs (and have proper servlet-mappings
              > in my web.xml), I get 404 error with the relative-path, if I change it to
              > absolute path with pre-compiled JSPs it forwards ok , then.
              > any ideas why this is so?
              > thanks,
              

  • Problem  with sqlloader and rtrim in direct path

    Im trying to load near 40 Gb of information to Oracle 9i (9.2.0.6.0) so to acelerate the load we are using direct=true but we are having problems with table where we need to aply sql funtions. Like an example check this control file please:
    LOAD DATA
    INFILE 'PSACTIVIMG.dat' "str '~~~~~'"
    BADFILE 'PSACTIVIMG.bad'
    DISCARDFILE 'PSACTIVIMG.dsc'
    INTO TABLE PSACTIVIMG
    TRAILING NULLCOLS (
    ACTIVITYNAME CHAR terminated by '@@#' "NVL(RTRIM(:ACTIVITYNAME),:ACTIVITYNAME)",
    SEQNO terminated by '@@#',
    PSIMAGEVER terminated by '@@#',
    IMGSEG RAW(65536))
    When we try to run it with direct=true we are getting:
    SQL*Loader-961: Error calling once/load finishing for table PSACTIVIMG
    ORA-26090: row is in partial state
    SQL*Loader-2026: the load was aborted because SQL Loader cannot continue.
    But in alert.log we are getting:
    ORA-00600: internal error code, arguments: [klafre_30], [0], [], [], [], [], [], []
    ORA-01403: no data found
    If i remove the rtrim function or i use conventional path the data its loades correctly. Any body have any suggestion about this problem?
    thanks in advance.
    Alejandro Amador.

    Could you use an external table and insert as select with the /*+ append */ hint?

  • Problem with jsessionid and relative paths

    I'm having an issue with jsessionid in a J2EE application running on an all Oracle platform (Oracle DB, 9ias, etc.). Most of the time sessions are tracked with cookies, but occasionally the jsessionid appears on the URL (on first login with a new browser window I think?).
    Anyway, sometimes the session id is very large (100 chars +) and includes special characters, specifically a backslash. This is causing problems with relative paths in the page.
    Is this normal behavior or is there a problem with my app server/JVM setup? Has anyone else seen this? Thanks for any advice.

    Hi Stefan,
              The issue was logged as CR238704. You can either contact [email protected] or
              just pass me your email Id and I'll send the patch to you.
              -- Nagesh
              <Stefan Krause> wrote in message news:[email protected]..
              > The problem I have is that the application is very old and at the same
              > time very big (so we're doing the transition step by step) and there are
              > lots of variables (and even methods in JSP pages - no comment) shared
              > between the JSP pages!
              > So for us jsp:include isn't an option...
              >
              > Is there a way to report bugs when you've got only the free development
              > license?

  • Problem with file path in linux

    hi,
    i have problem with file path accessing in linux. my java class is accessing a abc.cvs file and and getting all data. it is working fine in windows xp. but i run this same file in linux it does not access the abc.cvs file and does not get any data.
    my project structure
    Search
    abc.cvs
    search.SearchMain
    i am sccessing this cvs file in this SearchMain class by this way file name = "abc.cvs"
    It is working fine with window but problem with linux.
    when i place this abc.cvs in a folder as "./data/abc.cvs" also working fine with windows but not in linux.
    I am new for linux.
    Please give me solution.
    Thanks in advance
    Ravi

    forgot to tell,
    then you need to export that path
    export $CLASSPATH
    code}                                                                                                                                                                               

  • Nautilus have problem with opening paths other than /home

    Hi,
    I have strange problem with nautilus. When I want to open some path ie. /media/*some mounted device* or /tmp usign gnome-menu "Places" I see hourglass cursor for a while and then nothing happens. Only home would open with "Places" however typing nautilus path in console opens the specified path instantly. If I open /home and then go to desired place and next try to again open this path with "Places" menu it works.
    How could I fix this issue?
    Last edited by karm (2011-01-27 20:54:26)

    karm wrote:
    Sorry for late reply I was not here for a while.
    here are the permissions:
    /media
    drwxrwx--- 1 root staff 8,0K 02-13 04:35 wd
    Unless your user is part of the "staff" group, you wouldn't be ale to open "wd".
    drwxrwxrwt 14 root root 20K 02-20 03:03 tmp
    Permissions are good here.  You should be able to open everything.  *But* if you want, issue a "chown root:users" on /tmp as root and see if that makes a difference.  (I'm assuming "users" is your default group.  It is for me on Arch.)
    /home
    drwxr-xr-x 49 karm root 20K 02-19 21:07 karm
    You own home so that is as it should be.
    > As I wrote before, only /home is opening corectly. It may be important that /media/wd is a mount point of an external usb hard drive. Does this ring some bells?
    >Regards,
    >karm
    I don't know if you're having a Gnome specific issue or not but I would play around with changing ownership of the problematic folders to your user and see if it makes a difference.

Maybe you are looking for