I have installed Java SE Development Kit 8u77 for Windows x64. I have also installed Java for desktop, Version 8 Update 77. Will this suffice for me to start coding. Also I did NOT manage to open the window for coding. How can I open a coding console ? How do I install .jar libraries ? Obviously I'm skipping a few 100 steps and trying to do something a couple Levels up, though Im at Level 0. Help !!
The only things you really need to start coding are:
The JDK (check)
notepad (though when more advanced, an IDE can come in handy - check)
command prompt (check)
I'm skipping a few 100 steps
Don't. All that will lead to, is you as 'experienced' developer come here to ask questions a beginner is (or should be) able to solve without problems.
Related
So I asked this on RaspberryPiExchange but someone there told me to ask here so here it is.
I recently had to reinstall Rasbian on my Raspberry Pi due do something becoming corrupt and apt-get not working. I made sure to backup what I could before I reinstalled. So when I went to reinstall Eclipse and pickup where I left off in one of my Java projects it was very worrying when Java keywords weren't highlighted. I've tried googling to figure out if I skipped a step but it does seem I have. I'm running Jessie 8 with jdk8 that came preinstalled assuming it's the same one you'd get from doing apt-get install. So my question is can anyone help me figure out why it seems Eclipse no longer recognizes Java as a whole. Also, I would like to mention I have already installed the Eclipse Java Development plugin.Here is a screenshot of just a few lines to better show what I'm trying to say Screenshot of an example program screenshot of eclipse
Ok so after updating eclipse using the sudo vnc session when I went back over to the regular vnc session eclipse now finds all java related things
I've made a word-processor named StoryTeller in Java (a first - beta version, which I'm still working on improving) and put it online for others to test out and use.
I've gotten a response saying they were unable to open it. I've built and run StoryTeller on Windows 10 OS and it works fine. After generating the jar file, I used Inno setup to generate an installer for the program. You can find the file I've uploaded here. Here's the message I got about it:
Hello! I was going to try out StoryTeller on my Macbook today, but unfortunately it didn't work. The file automatically gets opened in
"Text Editor" where encrypted text shows up along with the error
message "this program must be run under Win32".
I downloaded it on my old computer earlier this week (it has windows
7) and the download process and installation worked perfectly fine,
but I was unable to open the program when the installation was done.
It appeared on my desk as a Java-symbol (the icon) and nothing
happened when I clicked on it. Both my OS are quite old (Macbook from
2010 and the other computer from 2012), but I've still updated them as
much as possible and installed all the latest versions available of
necessary programs, so I'm not sure whether the problem lies within my
computers or StoryTeller itself.
Do you have any ideas how I can fix this? I would really like to try
StoryTeller since it seems to be a great concept that could really
come in handy when I work on my novel.
Could anyone help, please, understand what may be the issue here? Thanks.
First, check if your JDK is 32-bits and make sure to advice your future users have a 32-bit JRE installed. This way, it may work properly. I think 64-bit Java apps can't run atop a 32-bit JRE;
You can bundle a proper JRE/JVM with your software;
Make sure you are referencing ANYTHING with absolute paths inside your code. This could make your software throw several exceptions when running somewhere else;
For instance, Inno-setup commonly generates Windows-only .exe setups. Installing your software in a Mac would require you to generate a .dmg or .pkg (this one you could create through PackageMaker extension from XCode here (require registration, more info here
Kappy on Jul 5, 2012 6:28 PM says: Go to connect.apple.com and search for "packagemaker." Of course you must first be logged into your developer account.
))
For Linux, you can provide a simple shellscript bundled with your .jar (even with a discrete JVM) in a .zip or .tar.gz file, and ask your future users to run the provided shellscript.
Good luck!
I'm trying to get Eclipse 4.5.2 running on Macs with OS X 10.10.5 and Oracle Java 8u73 I got to the point where trying to start Eclipse results in
The JVM shared library "$JAVA_HOME/bin../jre/lib/server/libjvm.dylib" does not contain the JNI_CreateJavaVM symbol.
Googling this returns a whole bunch of suggestions, none of which work. Some say you absolutely MUST have the JDK (I'm using the JRE). Others emphatically say the JRE is all you need. Some suggest editing an Info.plist or another, with people responding "Yeah that worked!" right along with "That didn't work"
How do I get past this message?
You need the JDK because, well, to be honest Apple hates Java and has done a thorough job of screwing up what used to be the best OS for Java development.
The "you need legacy Java" message was from OS X, not Eclipse. The advice to download and install it is bad advice, but sadly nothing that Eclipse can remedy. Installing "legacy Java" just reverts your system to a VERY outdated JRE and renders much Java-based software, including Eclipse, broken.
Eclipse requires Java 7 or above (this year's release of Eclipse packages in June will require Java 8 ), so the best thing is to download JDK 1.8 (not just the JRE), install that, then point your eclipse.ini file to it's exact location per the instructions at the eclipse.ini wiki page.
Oracle JDK download links change often, so it's best to Google for "JDK 8 download" and you'll find it. Here's the page as it stands at the time I'm writing this.
[quoted from this Eclipse forums message]
I wanted to develop an android app a few months ago, so I followed all the steps from here-> https://developer.android.com/training/basics/firstapp/index.html?hl=p and I believe I downloaded all the tools I needed. I never got around to developing anything, so I tried starting again a few days ago. When I went to the above mentioned website, it said download the new versions of this and that, so I did. I tried following the steps, but now when I try to open eclipse, I get an error saying:
"Error could not find Java SE Runtime Environment".
My questions are:
How do I delete everything and start from scratch? I wan't to delete eclipse, sdk manager, sdk folder, everything. I want to follow the download instructions all over again and see what happens because it did seem to work the first time i tried a few months back.
Do I just delete some programs from control panel?
If this is not easy, how can I fix the error I'm getting when trying to open eclipse?
Edit: windows 7, 64-bit OS, if that helps
That sounds more like a problem of a corrupted Java installation. Check the JAVA_HOME environment variable. If this is empty fix this and try again.
To delete eclipse and the sdk just delete them from where you installed them.
SUGGESTIONS:
0) I assume you're running Windows. Please specify if you're on a different platform.
1) Delete Eclipse.
If you're not using Eclipse for anything else yet, I would strongly encourage you to delete it.
2) Uninstall your Java JDK (from Control Panel).
Download and install the JDK from Oracle: http://java.oracle.com.
3) Download and install the "ADT Bundle for Windows": https://developer.android.com/sdk/
In earlier versions of Android, you had to install Eclipse, the Android Plugins, and the Android SDK separately. I believe this is the procedure your link describes.
The newer "ADT Bundle" saves you this trouble. If Android is the only thing you're using Eclipse for (at least for now), you definitely want the ADT bundle. And you can probably ignore most of the instructions in your link.
'Hope that helps..
this is a kind of weird non programming (but java related) question.
I created a java program (game) using just normal java, and no libraries.
In ordor to double click/open it, you need to have java SDK/JDK (I don't know which) installed.
I tested this multiple times, and in order for my PC and Mac to launch it, you need to install it.
is there anyway to get around this? I know Minecraft doesn't force you to download the JDK.
Here's the link to source code of my game if your interested (no, it is not a virus): http://www.filedropper.com/daplatform
Thanks, Jake
Here's the link to the download of the JDK (Its next to the giant Netbeans download): http://www.oracle.com/technetwork/java/javase/downloads/index.html
What you can do is you can wrap both your program and the JRE required to run it into a single executable for the target platform.
For example your windows installer would include both a windows JRE and your program itself.
Launch4j http://launch4j.sourceforge.net/ lets you wrap a Java program into a windows executable and gives you options about how to handle the JRE, including bundling it.