Go Down

Topic: Arduino and Vista - need help [Solved] (Read 1 time) previous topic - next topic

Derryl

Jan 09, 2009, 01:41 am Last Edit: Jan 10, 2009, 01:37 am by Derryl Reason: 1
I recently bought an Arduino board. I downloaded the latest software for windows arduino-0012.

After installing and setting up the USB driver I couldn't get the IDE to work. Here's what I did to at least load the IDE.

Running Arduino.Exe I got this error: Java Virtual Machine Launcher - Error: could not open `C:\Users\Prashant\Arduino\arduino-0012\java\lib\i386\jvm.cfg'.

I also tried running the Run.Bat file and I got this error: Error: could not open `C:\Users\Prashant\Arduino\arduino-0012\java\lib\i386\jvm.cfg'.

I downloaded and installed Java from Sun.com.

In the arduino-0012\java folder there is no lib subfolder.

I browsed the forum and found that a guy had deleted the java folder under the arduino-0012 folder.

After deleting the java folder I got a java error: Error reading the board definitions file. Please re-download or re-unzip Arduino.

At least Java was running....

I modified the run.bat to point JAVA-HOME to the right folder.

Line modified: set JAVA_HOME="c:\program files\java\jre6\bin"

I then got this error:

java.io.FileNotFoundException: C:\Users\Prashant\Arduino\arduino-0012\hardware\boards.txt (The system cannot find the path specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(Unknown Source)
      at processing.app.Preferences.init(Preferences.java:213)
      at processing.app.Editor.<init>(Editor.java:163)
      at processing.app.Base.<init>(Base.java:149)
      at processing.app.Base.main(Base.java:104)

I created a Hardware folder under arduino-0012 and created an empty boards.txt file.

Next, I got this error:

java.io.FileNotFoundException: C:\Users\Prashant\Arduino\arduino-0012\hardware\programmers.txt (The system cannot find the file specified)
      at java.io.FileInputStream.open(Native Method)
      at java.io.FileInputStream.<init>(Unknown Source)
      at processing.app.Preferences.init(Preferences.java:225)
      at processing.app.Editor.<init>(Editor.java:163)
      at processing.app.Base.<init>(Base.java:149)
      at processing.app.Base.main(Base.java:104)

I created an empty programmers.txt file.

Then the arduino client ran okay.

I got the following error messages in the command window:

java.io.IOException: Target platform: "null" not found.
Make sure that "build.target" in the preferences file points to a subdirectory of
C:\Users\Prashant\Arduino\arduino-0012\hardware\cores
      at processing.app.Target.<init>(Target.java:49)
      at processing.app.LibraryManager.<init>(LibraryManager.java:50)
      at processing.app.Sketchbook.buildMenu(Sketchbook.java:433)
      at processing.app.Sketchbook.rebuildMenus(Sketchbook.java:374)
      at processing.app.Sketchbook.rebuildMenusAsync(Sketchbook.java:358)
      at processing.app.Sketchbook.handleNew(Sketchbook.java:229)
      at processing.app.Editor.handleNew2(Editor.java:1724)
      at processing.app.Editor.restorePreferences(Editor.java:464)
      at processing.app.Base.<init>(Base.java:155)
      at processing.app.Base.main(Base.java:104)

java.io.IOException: Target platform: "null" not found.
Make sure that "build.target" in the preferences file points to a subdirectory of
C:\Users\Prashant\Arduino\arduino-0012\hardware\cores
      at processing.app.Target.<init>(Target.java:49)
      at processing.app.LibraryManager.<init>(LibraryManager.java:50)
      at processing.app.Sketchbook.buildMenu(Sketchbook.java:433)
      at processing.app.Sketchbook.rebuildMenus(Sketchbook.java:376)
      at processing.app.Sketchbook.rebuildMenusAsync(Sketchbook.java:358)
      at processing.app.Sketchbook.handleNew(Sketchbook.java:229)
      at processing.app.Editor.handleNew2(Editor.java:1724)
      at processing.app.Editor.restorePreferences(Editor.java:464)
      at processing.app.Base.<init>(Base.java:155)
      at processing.app.Base.main(Base.java:104)

java.io.IOException: Target platform: "null" not found.
Make sure that "build.target" in the preferences file points to a subdirectory of
C:\Users\Prashant\Arduino\arduino-0012\hardware\cores
      at processing.app.Target.<init>(Target.java:49)
      at processing.app.LibraryManager.<init>(LibraryManager.java:50)
      at processing.app.Sketchbook.buildMenu(Sketchbook.java:433)
      at processing.app.Sketchbook.rebuildMenus(Sketchbook.java:374)
      at processing.app.Sketchbook.rebuildMenusAsync(Sketchbook.java:358)
      at processing.app.Editor.applyPreferences(Editor.java:524)
      at processing.app.Editor.restorePreferences(Editor.java:477)
      at processing.app.Base.<init>(Base.java:155)
      at processing.app.Base.main(Base.java:104)

java.io.IOException: Target platform: "null" not found.
Make sure that "build.target" in the preferences file points to a subdirectory of
C:\Users\Prashant\Arduino\arduino-0012\hardware\cores
      at processing.app.Target.<init>(Target.java:49)
      at processing.app.LibraryManager.<init>(LibraryManager.java:50)
      at processing.app.Sketchbook.buildMenu(Sketchbook.java:433)
      at processing.app.Sketchbook.rebuildMenus(Sketchbook.java:376)
      at processing.app.Sketchbook.rebuildMenusAsync(Sketchbook.java:358)
      at processing.app.Editor.applyPreferences(Editor.java:524)
      at processing.app.Editor.restorePreferences(Editor.java:477)
      at processing.app.Base.<init>(Base.java:155)
      at processing.app.Base.main(Base.java:104)

java.io.IOException: Target platform: "null" not found.
Make sure that "build.target" in the preferences file points to a subdirectory of
C:\Users\Prashant\Arduino\arduino-0012\hardware\cores
      at processing.app.Target.<init>(Target.java:49)
      at processing.app.LibraryManager.<init>(LibraryManager.java:50)
      at processing.app.Editor.prepareLibraries(Editor.java:383)
      at processing.app.Base.<init>(Base.java:161)
      at processing.app.Base.main(Base.java:104)

java.io.IOException: Target platform: "null" not found.
Make sure that "build.target" in the preferences file points to a subdirectory of
C:\Users\Prashant\Arduino\arduino-0012\hardware\cores
      at processing.app.Target.<init>(Target.java:49)
      at processing.app.LibraryManager.<init>(LibraryManager.java:50)
      at processing.app.Sketchbook.buildMenu(Sketchbook.java:433)
      at processing.app.Sketchbook.rebuildMenus(Sketchbook.java:374)
      at processing.app.Editor.prepareLibraries(Editor.java:394)
      at processing.app.Base.<init>(Base.java:161)
      at processing.app.Base.main(Base.java:104)

java.io.IOException: Target platform: "null" not found.
Make sure that "build.target" in the preferences file points to a subdirectory of
C:\Users\Prashant\Arduino\arduino-0012\hardware\cores
      at processing.app.Target.<init>(Target.java:49)
      at processing.app.LibraryManager.<init>(LibraryManager.java:50)
      at processing.app.Sketchbook.buildMenu(Sketchbook.java:433)
      at processing.app.Sketchbook.rebuildMenus(Sketchbook.java:376)
      at processing.app.Editor.prepareLibraries(Editor.java:394)
      at processing.app.Base.<init>(Base.java:161)
      at processing.app.Base.main(Base.java:104)

I still can't upload sketches to my board.

I need to know how to fix the "Make sure that "build.target" in the preferences file points to a subdirectory of
C:\Users\Prashant\Arduino\arduino-0012\hardware\cores" message.

Can someone describe what files are in their hardware\cores folder?

And what does your "build.target" line look like in your preferences.txt file?

Mine looks like this:
build.target="C:\Users\Prashant\Arduino\arduino-0012\hardware\cores\target\"

Thanks

Derryl

Digger450

If you are missing entire directories, it sounds like something went wrong with your download.  Have you tried downloading it again?  Are you sure you extracted all files and folders from the zip?  Creating empty files will not make it work, obviously you need the data too!

mikalhart

I agree.  I was able to install on Vista (Ultimate) with no problem.  Even the FTDI USB driver installed automatically without any fuss.  In the Windows distro, there are 30MB of files in arduino-0012\java\lib.

Mikal

Derryl

Thanks to you guys, I looked at the zip file and found that Vista Explorer was dying during the extracting of files. I used 7-Zip to extract the files. And using the Arduino IDE I was able to upload the flashing sketch to the board and it ran fine.

Derryl

adam12

Any other ideas why Arduino.exe or the Run.bat  will not launch?  (Duemilanove) I am having the same issue in Vista 64 Ultimate.  

I get this error when running the batch file **
ERROR You have not installed the DLL named 'ICE_JNIRegistry.DLL'.
       no ICE_JNIRegistry in java.library.path
.....

I modified the Java_home path in the bat
set JAVA_HOME="C:\Program Files\Java\jdk1.6.0_10\bin"
It finds it.   I trashed the old Java folder that came with the IDE.  
(I also tried the Java_home path point to the java within the IDE file structure as well before I trashed it.  - no help)

I just loaded the latest Java and Sun's web app sees it as working fine.  Am I supposed to keep the one for the IDE?

Any ideas how to get the Arduino.exe to run?

The full error is
ERROR You have not installed the DLL named 'ICE_JNIRegistry.DLL'.
       no ICE_JNIRegistry in java.library.path
Exception in thread "main" java.lang.UnsatisfiedLinkError: openSubKey
       at com.ice.jni.registry.RegistryKey.openSubKey(Native Method)
       at com.ice.jni.registry.RegistryKey.openSubKey(RegistryKey.java:185)
       at processing.app.Base.getSettingsFolder(Base.java:281)
       at processing.app.Base.getSettingsFile(Base.java:329)
       at processing.app.Preferences.init(Preferences.java:190)
       at processing.app.Editor.<init>(Editor.java:163)
       at processing.app.Base.<init>(Base.java:149)
       at processing.app.Base.main(Base.java:104)
Press any key to continue . . .

There is little web help I could find on this error.

Any help would be appreciated very much.
Thanks!
Adam

Derryl

Hi Adam

The only thing I can think of is that maybe you are not a Windows administrator. That would explain why the DLL wasn't installed.

Derryl

adam12

Derryl,  
    Thanks, your comment tipped me off that that is was an install issue.  I unloaded java, Arduino and got a fresh download.  After unpacking I noticed files I had not seen before.  Up and running. (blinking) Thanks.
Adam

Go Up