I am trying to create a standalone .exe file (or something equivalent) from a scala project I have started. I need to create this in such a way thet the person using the application has to do the least amount of work possible (double-click an installer or just the .exe file). What are my options?
Have a look one OneJar. There is also a sbt plugin here
Take a look at ej-technologies the creators of JProfiler, they have a couple of products that might be useful to you, quoting from their product page:
install4j A cross platform Java installer
that generates native installers and application launchers for your
Java applications.
exe4j A Java exe maker that helps you integrate your Java applications into the Windows operating environment.
These are both commercial products and although I haven't used them, I have used JProfiler for many years.
I've heard of this one: Lauch4j.
According to the site:
It's possible to wrap applications on Windows, Linux, Mac OS X and
Solaris
IzPack plugin for SBT might be useful.
Even scala itself uses it: They use IzPack
Related
I wanted to install J2ME and configure it with Netbeans. I followed two different tutorials word by word but somehow mine would give me many errors. After so much searching I realized that the JDK, Netbeans and J2ME must all be of the same level ie. all to be of x32 or all to be of x64. Now, how do I know what level is each of them at?
How do I know if NetBeans is x32 or x64, as well as JDK and J2ME?
I am using JDK 1.8, Netbeans 8.2, J2ME 3.4
For Java, you can do java -version, and it'll tell you what version you have.
I did a quick look around for the other two but couldn't find anything immediately. However, if you search something like "check bit version for Netbeans/J2ME" then you might get it.
Another way to figure out would be based on your OS. Depending on how new/old it is, it might require certain bit version. You probably installed the correct one (or you should uninstall and re-install the correct one based on their respective installation guide), so you should know what bit version when you first installed.
For Netbeans and J2ME just open them, then open the Task Manager. On the list of Apps, the version of the software is shown as shown below.
About JDK, Open your C Drive and look for the installation folder of your JDK. If it is installed in the Program File folder then it is x64, if it is in the Program File(x86) then it is x32.
I am starting a java SWT project with creme 4.12 jvm for a windows mobile 6.5 pocket pc.
I really dont know where to start. could not google out any good documentation or example, just a few questions in forums.
I would like to know:
Is there any good docs around that i was unable to find?
Do i have to put any extra configuration on eclipse or i can create and build a simple java project, with sdk 1.3.
I have included the swt-32.dll as native library in swt.jar
i have tried to run it on the device but it crashes before running.
Sorry for the long question, but i really dont know what to do.
I have not that much experience with CrEme although I know that some large WM installs use that.
I can do an AWT app in netbeans and run it successfully on a device.
Look for the netbeans mobility pack to start with CrEme and netbeans.
OTOH you can go on with eclipse. Where did you get the swt files from? I found one source here http://davy.preuveneers.be/phoneme/?q=node/15.
Here is one source I found for an intro to SWT on WM: http://www.eclipse.org/articles/Article-small-cup-of-swt/pocket-PC.html
When downloading the Netbeans IDE (7.3/7.4), the choice of official languages is severely crippled. Furthermore, it appears that community translations are no longer available at all.
In particular, I am interested to know if it is possible to create a Netbeans platform installer that is multi-lingual. Currently, it seems that the generated installers are always only in English (or any of the languages one downloaded the IDE for).
In case, that there is no "official" way to do this - is there another way to create the installer for a target language, or has Oracle effectively killed Netbeans RCP products?
I just finished the awesome Coursera Scala course and am eager to continue learning more about Scala by exploring some existing open source projects. I've hit a snag while trying to get some of them running locally, though.
I come from a background in Ruby, where we use tools such as rvm or rbenv to manage multiple Ruby interpreters/versions on one system. What is the approach that Scala users take for working with projects that use different versions of Scala/SBT?
I suspect that I'm missing something big since this doesn't seem to be a popular issue.
Please note that I'm pretty new to the world of Java and the JVM in general.
I suggest you take a look at paulp's excellent sbt-extras script. This will enable you to pick which version of sbt you want to use on a per-project basis, and sbt will allow you to pick which version(s) of Scala you want on a per-project basis.
I always use the latest sbt from Homebrew (OS X) and then control the Scala version and libraries from within the build.sbt.
More recently (Dec. 2016), you can try and check out sdkman.io, The Software Development Kit Manager.
It is a tool for managing parallel versions of multiple Software Development Kits on most Unix based systems. It provides a convenient Command Line Interface (CLI) and API for installing, switching, removing and listing Candidates.
It installs Software Development Kits for the JVM such as Java, Groovy, Scala, Kotlin and Ceylon. Activator, Ant, Gradle, Grails, Maven, SBT, Spring Boot, Vert.x and many others also supported.
I want to learn Xcode in order to use its Obj-C, C, Java etc. project development facilities. I'm trying to start from the tasks I've done easily in Eclipse. For instance:
In Eclipse I used to create a new project and add a .java file with a main() whenever I wanted to test a snippet or a short algorithm that writes on standart output or console. I tried to create a java project in Xcode, but the templates given are ready-to-code complete mac apps, hence they are an overkill for a simple test. Starting out from an empty project, I began to notice that I had to write some shell scripts and some ant lines, also those codes had to be associated with "targets" and many other things that are not natural in Eclipse... It was overwhelming... so:
Does Xcode provide a simple solution like a Eclipse java project to aid those problems?
Where can I find (besides apple.com) an easy introduction to Xcode?
texeditor, java y javac are better options, and then is better to remain in Eclipse?
Stick to Eclipse for Java applications, use XCode for Objective-C or otherwise native Mac OS X applications.
XCode is no match to Eclipse when it comes to Java support: there's no such thing as a Java project, ant isn't there, it knows nothing about JVMs (e.g. you cannot use JVM version X for project Y), there are virtually no plugins for XCode (things you take for granted in Eclipse such as the web services tools, tomcat integration, etc).
XCode is the ultimate tool for Mac OS X applications as it's very well integrated with Interface Builder, which you'd use to build and manage the graphical resources of your application. It does a great job at managing Objective-C and C code, recent version have built in static analysis and all versions are integrated with GDB (the C debugger).