Results 1 to 16 of 16
  1. #1
    orangetj is offline what you hate of yourself
    Join Date
    Jun 2011
    Posts
    16
    Rep Power
    0

    Question [resolved] help regarding compiling in a portable way

    this may sound like a epicly stupid question but please bare with me that I am a newb and am still trying to figure this all out. one thing you will need to know about me is that im a usb person I like putting what i can on a usb, that being said figuring out my next question is likely to be a no brainer for the pros answering it wont be much harder (I hope). is it possible to fit both the java runtime environment and java developer kit (preferably the latest versions) on a usb and have them work on any (or most) computers without mucch hassle and have it compile/decompile dirrectly onto the usb. If possible
    Last edited by orangetj; 06-12-2011 at 05:09 PM.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    The problem with installations in general is that they often make changes to the operating system and, in other ways, make things "visible" to other applications: eg a web browser needs to know that a java runtime is available in order to display applets.

    That said Eclipse is very good: you download a .zip archive, extract it to whereever you want and you're done. If I were you I would download the JDK and install it onto your USB drive, likewise any documentation you might need. Then extract the Eclipse files to the USB drive and see how far you get. Eclipse does need to find a valid JRE in order to run, but this can be specified on the command if all else fails.

  3. #3
    orangetj is offline what you hate of yourself
    Join Date
    Jun 2011
    Posts
    16
    Rep Power
    0

    Default

    the problem is for me that I cant always have jdk installed onto the computer that im using because I do go to many places which means If i write 5 lines of code and screw up the first 2 then the whole thing is useless. which is very easy for me to do as i failed the hello world script on my first try... and I had a java book infront of me reading it as I was trying it XD

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,564
    Rep Power
    23

  5. #5
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    That's why I am suggesting that you install the JDK onto the USB, and put the Eclipse files there also. Everything you need for your Java work - the two mentioned, and documentation and your source files - all go onto the USB drive.

    ----------------

    [edit] Please Be Forthright When Cross Posting To Other Sites.
    Last edited by pbrockway2; 06-12-2011 at 03:48 AM.

  6. #6
    orangetj is offline what you hate of yourself
    Join Date
    Jun 2011
    Posts
    16
    Rep Power
    0

    Default

    lol first i posted it there then noticed that that forum looked as if it had been run down as it had no active users according to its stats so i found a forum dedicated to java and thought it would be better XD thanks though

  7. #7
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,564
    Rep Power
    23

    Default

    Some versions of the JDK allow you to specify where part of the installation goes. But it puts some on your C drive.

  8. #8
    orangetj is offline what you hate of yourself
    Join Date
    Jun 2011
    Posts
    16
    Rep Power
    0

    Default

    and how would i get them to work off eachother while having them use the usb as the defaultt input/output folder? as well as for saving

  9. #9
    DarrylBurke's Avatar
    DarrylBurke is offline Member
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    11,189
    Rep Power
    19

    Default

    Well, first, you'll need to learn to use periods. Then paragraphs.

    db

  10. #10
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,564
    Rep Power
    23

    Default

    how would i get them to work
    Copy the folders to your stick, create some batch files to execute the javac and java commands, take the stick to another computer that doesn't have java installed and see what happens.
    To test it on your computer, either remove the PATH entry or rename the folders where the JDK and JRE are installed and see what it takes to get java to execute from your stick.

  11. #11
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,000
    Blog Entries
    7
    Rep Power
    20

    Default

    If you install Eclipse you don't need to install a JDK, just the JRE will do; note that the JRE installer stores a copy of java.exe etc. in your Windows/System (or System32) directory. If you don't want to use java for applets and other plugins you don't need that either; just install Eclipse and the JRE on a usb stick and make two path entries to both bin directories and you're done.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  12. #12
    orangetj is offline what you hate of yourself
    Join Date
    Jun 2011
    Posts
    16
    Rep Power
    0

    Default

    Quote Originally Posted by DarrylBurke View Post
    Well, first, you'll need to learn to use periods. Then paragraphs.

    db
    Im not trying to be rude or anything, but does punctuation in any sence really matter. One thing that has always baffled me, is why punctuation is made into such a major thing. What is it about punctuation, that makes one able or even unable to read a single paragraph or text. Sure it makes it look so much cleaner, as well as much more organised, but is there a major difference between the two?

    Im not trying to be rude or anything but does punctuation in any sence really matter one thing that has always baffled me is why punctuation is made into such a major thing what is it about punctuation that makes one able or even unable to read a single paragraph or text sure it makes it look so much cleaner as well as much more organised but is there a major difference between the two

  13. #13
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    16,564
    Rep Power
    23

    Default

    Yes. The first paragraph is MUCH easier to read. It makes the author look educated and caring about communicating. The second one never got past 3rd grade.

  14. #14
    JosAH's Avatar
    JosAH is offline Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,000
    Blog Entries
    7
    Rep Power
    20

    Default

    Quote Originally Posted by orangetj View Post
    Im not trying to be rude or anything, but does punctuation in any sence really matter. One thing that has always baffled me, is why punctuation is made into such a major thing. What is it about punctuation, that makes one able or even unable to read a single paragraph or text. Sure it makes it look so much cleaner, as well as much more organised, but is there a major difference between the two?
    Have a look at this sentence: "Charles the First walked and talked half an hour after his head was cut off"; punctuation is crucial here, better use it for clarity.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

  15. #15
    orangetj is offline what you hate of yourself
    Join Date
    Jun 2011
    Posts
    16
    Rep Power
    0

    Default

    wow i know dude,, im in grade 10, and i do texts all the time.

    just for the fun of it and for a small experiment, try and punctuate the following:
    that that is is that that is not is not is that it it is

  16. #16
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    does punctuation in any sence really matter
    Speling two. For humans it allows intention to be understood, for compilers it allows algorithms to be defined.

Similar Threads

  1. Compiling packages
    By sunde887 in forum New To Java
    Replies: 1
    Last Post: 01-10-2011, 03:10 PM
  2. Compiling problems
    By sunde887 in forum New To Java
    Replies: 16
    Last Post: 01-05-2011, 08:49 PM
  3. Compiling Error
    By kartikeyasri in forum New To Java
    Replies: 1
    Last Post: 12-28-2010, 04:20 PM
  4. how to get compiling
    By philgrek in forum New To Java
    Replies: 1
    Last Post: 05-25-2010, 11:53 PM
  5. Compiling with Different Classes
    By Moncleared in forum Advanced Java
    Replies: 5
    Last Post: 02-03-2009, 06:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •