Thanks John. I got my java, eclipse, & android working together through the help of these two sources:
Source 1: Path variable info: http://www.eecs.ucf.edu/~leavens/ComS541Fall03/running_java.shtml#home (In case of broken link, here’s what it says) Running Java and Eclipse on Your Home Machine The Java J2SDK and the Eclipse editor will also be easy to use on your home machine. Eclipse works the same at home or at school. See the course resources web page for details on how to get these, and consult the installation notes that come with them. Setting the PATH under Windows Here's how to set the PATH evironment variable on Windows XP. First, open the start menu's control panel. Then select Performance and Maintenance, then (or directly) open the "System" tool, and then from the window, select the "Advanced" tab. At the bottom is a button for "Environment Variables"; click this, and there should be PATH (or something with different capitalization) in the "System Variables" list. On windows this is a semicolon-separated list of directories. Edit the listing to put the directory where you installed the Java executables in the list. For example, my PATH variable's value looks like the following. .;d:\bin;d:\bat;c:\cygwin\usr\local\jdk1.4\bin;c:\ ... In the above c:\cygwin\usr\local\jdk1.4 is the top directory of my Java installation. See also Java Glossary: environment. Setting the CLASSPATH under Windows A common problem is that your CLASSPATH environment variable may not be set correctly. This variable must contain a path, which is a list of directories separated by semicolons (;), on a windows machine, and the directory containing the directory that names the package must appear in the CLASSPATH. (This variable is set the same way that the PATH environment variable is.) For example, to run the interpreter as above on a program found in the package "examples", you must either: have the current directory, ., or an empty component in your CLASSPATH, and the current directory must contain a subdirectory called "examples", or have in your CLASSPATH the full path to a directory containing a subdirectory called "examples", have in your CLASSPATH a path to a jar file containing the package called "examples". Similar considerations apply to the compiler. See the documentation that comes with the J2SDK for for more information about setting the CLASSPATH. See also Java Glossary: classpath. -AND- Source 2: Format of Eclipse.ini file http://wiki.eclipse.org/Eclipse.ini (In case of broken link, here’s what it says) Eclipse.ini >From Eclipsepedia Jump to: navigation, search Eclipse startup is controlled by the options in $ECLIPSE_HOME/ eclipse.ini. If $ECLIPSE_HOME is not defined, the default eclipse.ini in your Eclipse installation directory is used. eclipse.ini is a text file containing command-line options that are added to the command line used when Eclipse is started up. Important: Each option and each argument to an option must be on its own line. All lines after -vmargs are passed as arguments to the JVM, so all arguments and options for eclipse must be specified before -vmargs (just like when you use arguments on the command-line) By default, eclipse.ini contains something like -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vmargs -Xms40m -Xmx256m which sets the heap space to 40MB initially and a maximum of 256MB, and also specifies a maximum PermGen size of 256MB. One of the most recommended options to use is to specify a specific JVM for Eclipse to run on. The following eclipse.ini demonstrates correct usage of the -vm option: -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vm C:\Java\JDK\1.5\bin\javaw.exe -vmargs -Xms40m -Xmx512m On a Linux system, the file looks quite similar: -showsplash org.eclipse.platform --launcher.XXMaxPermSize 256m -vm /opt/sun-jdk-1.6.0.02/bin/java -vmargs -Xms40m -Xmx512m Note the format as it is important to be exact: The -vm option and its value (the path) must be on separate lines. The value must be the full absolute path to the Java executable, not just to the Java home directory. -CurtisCLaugh On Dec 15 2008, 4:48 pm, radiolistener <[email protected]> wrote: > Hi Curtis, > > I downloaded Eclipse first, Ganymede(3.4). Then installed the java, > latest one. > > Of note, I put Eclipse in the Public directory, in it's own > subdirectory. The java I accepted the defaults. > > Then I wrote a simple binary tree example. > > Then I installed the Android developer kit. > > In order to install Java, I installed it as an Administrator, under > Administrator Permissions. > > As to the Eclipse, I found it required several modifications of > Eclipse.ini, to handle the different applications. > > With the Android developer kit, you must insure that you have the same > workspace as the installation. There are probably workarounds on > this. > > All of these worked well running under user permissions, until they > began banging against the firewall. It caused several freeze ups, > finally, I made my developer log-on an Administrator. > > So, it does work under Vista, it just takes adjustments and knowing > how to do it. The only real issue I'm noticing, is that it puts extra > load on my graphics, and when I work with it to create screen captures > of Eclipse, the video is behind the audio. > > I hope you find something in this post helpful. The biggest > recommendation is that you get Eclipse fully operational, and then > install the Android libraries. > > John.http://radiolistenersElectricEasel.comInc. > > On Dec 13, 9:04 pm,CurtisCLaugh<[email protected]> wrote: > > > > > Unfortunately, the "getting started" docs don't help you trouble shoot > > installing JDK 5 or 6, or Eclipse. My issue involves the installation > > of these two apps on Vista, which is probably my problem. > > > My first issue was with eclipse, when I ran the app (from my desktop) > > it failed to find ../eclipse/jre/bin/javjw.exe file, so I simply > > copied the jre directory from my java install into the eclipse folder. > > > When I ran eclipse again, I got an app exit code of -1 (whatever that > > means) and some more jargon about needing java version 1.5 (i had > > 1.6), so I downloaded 1.5 but I don't think it's compatible with Vista > > because it wouldn't install. > > > I found some answers on the internet about adding the java bin > > directory path to the classpath variable under the environment > > variables, but no luck. > > > Is there a way to get the vista compatible versions of jdk and eclipse > > and is there a certain order to installing them and android? > > > Thanks. > > > On Nov 30, 2:03 pm, Ralf <[email protected]> wrote: > > > > You can't run theandroid.jaras a desktop java application. It's > > > designed to be compiled against using the eclipse plugin or the > > > command-line ant script. > > > > You might want to read the "getting started" doc here, it explains how > > > to start developing, step by step: > > > http://code.google.com/android/intro/develop-and-debug.html > > > > R/ > > > > On Sat, Nov 29, 2008 at 3:34 PM, John2o01 <[email protected]> wrote: > > > > > ok everything i run just to test anything after i downloaded and > > > > unzipped the sdk gives me compilation errors and when i try to run the > > > > andriod.jar it wont work either it gives me" Failed to load Main-Class > > > > manifest attribute from C:\Documents and Settings\TEMP\Desktop > > > > \myg1\android-sdk-windows-1.0_r1\android.jar" how can i fix this??- > > > > Hide quoted text - > > > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---

