Browse thread
[ANN] OCaml-Java project : beta version
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| From: | forum@x9c.fr <forum@x...> |
| Subject: | Re: [Caml-list] [ANN] OCaml-Java project : beta version |
Le 1 mars 08 à 20:03, Adrien a écrit : > Hi, > > I am running under Vista right now (this is unusual for me). This > computer does not have ocaml installed, nor cygwin, mingw, msys or > msvc. The only related program it has is java 1.6. However the same > happens under winXP. > > In a command prompt if I run "javaw ocaml.jar", I get a graphical > message box telling me : > Java Virtual Machine Launcher > --------------------------- > Could not find the main class. Program will exit. > > If I rather run "java ocaml.jar", the error message is: > Exception in thread "main" java.lang.NoClassDefFoundError: ocaml/jar You should rather run "java -jar ocaml.jar". I was not aware of the existence of a "javaw" utility; it is a Windows- only thing ? > I've seen in your roadmap you have to port it to java 1.6. Does it > mean that meanwhile it is absolutely impossible to run ocamljava with > java6 ? No, ocamljava should run on any 1.5+ JVM provided that: - JVMs remains backward compatible (this should be the case, as a Sun policy) - there is no ocamljava-related bug that show up only on later JVMs The roadmap mentions a move from Java 1.5 to Java 1.6; it will induce producing Java 1.6 bytecode and giving up 1.5 compatibility. This should hopefully make ocamljava a little faster, notably at startup where 1.6-introduced stack frames should have some impact. > PS : by the way, your ocaml repl works really nicely ; I've used it > under internet explorer, k-meleon, opera, firefox, xp or vista (only > k-meleon and ie then) but not linux as I usually don't have the jvm. > It has been useful several times. Thanks. :) Thanks for the testing. I did not mention it in my previous post but the beta update features some toplevel enhancements such as the access to session history, as well as the ability to save this history to a file. Xavier Clerc