How does IDEA identify a JDK?

I've been playing around with LEGO Mindstorms and found the leJOS firmware that implements Java on the LEGO controller. Unfortunately, IDEA doesn't want to recognize the leJOS environment as a JDK, so I have to use Eclipse for an IDE.

I'm pretty sure I could script the external tools (linker, uploader) needed for use with IDEA. If nothing else, I could make a plugin to get it to work. However, the leJOS VM only implements a subset of the Java API, putting those classes in its own classes.zip. I need to replace the standard classes.zip with this one while developing; the easiest way I can see doing that is if IDEA treats the toolset as a new JDK.

Any ideas? Is it based on the presence of certain files? Particular scripts?

Thanks!

2 comments
Comment actions Permalink

Why not using the classes.zip as an ordinary library? In classpath tab make sure the library is placed before the JDK item. That way
it will be added to compilation bootclasspath and will override JDK's libraries.

--
Best regards,
Eugene Zhuravlev
Software Developer
JetBrains Inc.
http://www.jetbrains.com
"Develop with pleasure!"

"Robert Crawford" <no_reply@jetbrains.com> wrote in message
news:31807217.90321240252833855.JavaMail.clearspace@app8.labs.intellij.net...

I've been playing around with LEGO Mindstorms and found the leJOS firmware that implements Java on the LEGO controller.
Unfortunately, IDEA doesn't want to recognize the leJOS environment as a JDK, so I have to use Eclipse for an IDE.

>

I'm pretty sure I could script the external tools (linker, uploader) needed for use with IDEA. If nothing else, I could make a
plugin to get it to work. However, the leJOS VM only implements a subset of the Java API, putting those classes in its own
classes.zip. I need to replace the standard classe
s.zip with this one while developing; the easiest way I can see doing that is if IDEA treats the toolset as a new JDK.

>

Any ideas? Is it based on the presence of certain files? Particular scripts?

>

Thanks!

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5236202#5236202

>

__________ Information from ESET NOD32 Antivirus, version of virus signature database 4032 (20090424) __________

>

The message was checked by ESET NOD32 Antivirus.

>

http://www.eset.com

>
>




__________ Information from ESET NOD32 Antivirus, version of virus signature database 4032 (20090424) __________

The message was checked by ESET NOD32 Antivirus.

http://www.eset.com




0
Comment actions Permalink

I will give that a try. Thanks!

0

Please sign in to leave a comment.