Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Emailing Java files

  1. Nov 8, 2006 #1
    I have to put a bunch of Java files (written in jGrasp) into one zipped folder and send it by email. The problem is that all programs work perfectly well when they are in an unzipped folder, but, when I convert folder into a ziped one, programs don't work. For example, I have user defined class, JPanel, and a program with main method, and if I try to compile program in zipped folder it doesn't recognize the panel name and the class name. It says "cannot find symbol." Class,panel, and program are in the same folder and it still doesn't work.

    If you understand what I am talking about, please help me to find out how to zip everything and send it so that it compiles and runs when other people receive it.
    Thank you!
     
  2. jcsd
  3. Nov 8, 2006 #2

    berkeman

    User Avatar

    Staff: Mentor

    You don't really mean "try to compile program in zipped folder" do you? You mean that after you unzip the file, the compilation on the unzipped folder(s) fails?

    If the latter, be sure to turn on "Save full path info" when you zip.
     
  4. Nov 8, 2006 #3

    -Job-

    User Avatar
    Science Advisor

    Why not just put them in a .jar?
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Have something to add?