I'm trying to expand upon the basic Java that I've learned by taking an example that I've found in a general Java programming book and growing it with more capability. I've been trying to use Xcode's v3.5.2 Java project template for a Java application using the Eclipse Juno IDE and I see some of the methods and classes are deprecated. After clicking around the internet for the past two or three days, I'm confused.
I have two primary questions:
What is the proper start in developing a Java application (not for the web) on a Mac? Is the template available through Xcode 3.5.2 the right way to go? I'm trying to find how the apple.laf.useScreenMenuBar (discussed in the Apple Developer User's Guide for Java) interplays with the Xcode template. Does one outdate the other? Should I start from scratch?
I have yet to come across any documentation/template for the bare-bones/stub setup of a Java application on the Mac other than what is available in Xcode! I would think that such a stub would be available given Apple's Human Interface Guidelines. If some reference is available, I would appreciate a link. I've been consulting Apple's Java Development Guide for Mac and the API documentation, Oracle and other places on the web but so far no luck and just confusion.
I get the idea that the true answer is to give up on Java on the Mac and program on the PC or just go with Objective-C! (I'd like to learn Objective C but unfortunately right now, I have better survivability in my company with Java and Python.)
Thanks for any kind suggestions.
Give unto XCode that which is objective c. Use Eclipse for everything else.
Related
I don't know how exactly this problem is to be tackled but I have an Eclipse RCP (indigo) application which used to be deployed on Mac (10.6.8) Snow Leopard that must now be deployed on Mac (10.14.3) Mojave.
Our team, out of the options of VM-ing the app, migrating up the Eclipse RCP version (which due to the behemoth of an app we're dealing with would have led us hoplessly out of our time constraints), and keeping the app as is but simply providing a compatible SWT platform, chose the final option.
The idea being that SWT is the only real thing causing this Java app to not run when changing target platform.
the thing is we'd need an SWT targeted to Mac 10.14 and also answers Mac 10.6 calls.
Ergo a version that doesn't exist. (the end goal here, being to bundle our .dylibs with our project)
As my online searches have come up short I'd like to know what the procedure is for accomplishing this.
Here's what I did find :
https://wiki.eclipse.org/SWT/Devel/Gtk/Dev_guide#SWT_source_code_and_binary_repositories
https://wiki.eclipse.org/SWT/Developer_Guide
but I think they are trying to address how to develop with SWT not how to develop and build SWT.
also since I've never done anything like this I'm not sure I'm completely off the mark. is it SWT I'm aiming to build? is it JNI? is it os.java?
I am building my own Java program Java being an interpreted language does not have the ability to run as an executable moreover any jar file can be decompiled using any of the free decompilers to their source code.
My question is Can I create my own Installer using Visual Basic 2015 such that the User does not become aware they are going to run a Java program?
My choice for Visual Basic is because it is really a RAD for GUI based windows apps. Although Java is OS agnostic my program in Java is going to run by users on Windows as they use this OS.
May thanks in advance for your answers.
Basically your question revolves around the fact that you want to create your own installer.
Yes Visual Basic is a RAD GUI and does the work very fast. It is faster to make any application than in c# or VC++. So your choice of VB is good.
If you looking for an alternative to making your own installer in Visual Basic then you should consider InnoSetup which allows you to customize your Installer steps completely including distributing your version of JVM bundled inside the Install pack.
the best part is it is free and can be downloaded from here
If you want to create an MSI-based installer project, then Visual Studio 2015 Community Edition has an add-in for an installer project:
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.MicrosoftVisualStudio2015InstallerProjects
Start here:
https://www.simple-talk.com/dotnet/visual-studio/getting-started-with-setup-projects/
old but still works this way.
How to port to iOS from Java on top of libgdx?
What IDE should I use?
Is there any video or just plain text tutrials on this?
PS
After reading tutorial code.google.com/p/libgdx/wiki/IOSWIP I've understood that libGDX does not suite my needs. I've found the alternative way to "convert" Java to Objective-C such as j2objc code.google.com/p/j2objc. It suites my needs better. May be somebody else find it better as well.
It's not a matter of what IDE you use, any Java IDE will suffice although I personally would recommend you using one of the major ones like Eclipse or IntelliJ.
When compiling to iOS you'll have to use Xamarin to "convert" and compile your game to iOS. You can read it in more detail here : https://code.google.com/p/libgdx/wiki/IOSWIP
I wonder if someone can help me... I've been developing VB.Net for years and C++/VB before that. I've also got some PHP experience. I'm now moving to Java to write an app for my Android mobile. I'm trying to use MOTODev Studio (Which extends eclipse)
I've not developed in Java before so it's a bit of a learning curve anyway. I'm fairly confident I'll be able to work out the important bits but I'm in a new IDE in a new language developing for a new platform.
As I'm new to Java, I was hoping to be able to rely on auto-code generation, intellisense, etc. I'm starting to think this was either very optimistic or I'm using eclipse very poorly.
For example, I know I need to override the OnClickListener() event but am unsure of the exact syntax. In VS, I'd just start typing Override in a class and up would pop intellisense with everything I can override and the appropriate signature, however, in eclipse none of the intellisense options seem to apply when I type public voidor #Override. Is this because I'm doing something wrong/is eclipse intellisense incomplete not very good?
In VS there's a bar at the top of the code page which lists objects in the file on the left and methods of the current object on the right. Does eclipse have an equivalent? If so, where?
I've managed to use the IDE to the extent that I've got a "Hello World" installed on my mob so it's more code generation techniques than windows/dialogues/etc.
I suppose what I really need is for someone to recommend some good resources to help me transition. I'd also appreciate any comments or advice from others that have done similar
Thanks in advance
So you learning three items at once
Language (Java)
Platform (Android)
Tool (Eclipse)
Here are my two cents for each of them:
Java - besides annotations guide already mentioned by Falmarri all java tutorials on oracle site are worth seeing you can find them here
Android - From my point of view very good entering points into android development are Android Developer Dev guide and API Demos project which demonstrates many android aspects ( You can add this project into your workspace in Eclipse via ->New Android Project-> Select from sample ->Choose target version -> Click OK , Voila you have new project in your workspace with a lot of useful android related code, describing many advanced and not so advanced topics). BTW Android developers blog is worth reading but
it usually covers more advanced topics
Eclipse - Falmarri already pointed and pretty good tutorial about Eclipse, I from my side would suggest to start from Help-> Help Contents -> Java Development User Guide
It covers all basic tasks and concepts. For your particular problem with overriding ( actually implementing) an interface method you've to first indicate that your class implements View.OnClickListener via class MyClass implements OnClickListener at this point eclipse will notice that you claiming to implement interface but didn't actually implemented some of it methods ( in this situation onClick(View v)) and will mark class declaration with error marker. Go to your class declaration and press Ctrl + 1 ( also known as "quick fix") and you will get some options to fix broken code. At the other hand if you really want to override parent class method you can press Ctrl + Space in a class body ( e.g not inside the method) and you will get option to override avalible methods.
Hope it helps
http://download.oracle.com/javase/tutorial/java/javaOO/annotations.html
yes, it's the default java perspective. Have you even installed the IDE yet?
http://www.vogella.de/articles/Eclipse/article.html
I'm not entirely sure I fully understand your questions, but if I'm in a Java class in Eclipse that implements some Interface and I want to implement methods I either select the quick fix (Ctrl+1) for the compiler error telling me I'm not implementing the Interface or I trigger content assist (Ctrl+Space) in the class body to get a list of methods to override. And with the bar you mention, do you mean something like the breadcrumb navigation (Alt+Shift+B)?
I am a C# programmer. I want to learn Java to implement my windows application. But I don't know what IDE and what tools can help me.
Please help me to choose best platform and IDE and other tools.
Edit:
Thank You For Your Helping. And What is Best Ebooks and UserGuids to Learn java.
There are really three big IDE's that people use:
Eclipse
Netbeans
Intellij IDEA (my personal favorite)
The online Java Tutorials are a great place to start learning the language.
Eclipse or NetBeans will be your best bet for an IDE (in my options)
Set up Git for source control
Use Maven to manage your builds (if you're getting that complex)
First, download the java jdk.
http://www.java.com/en/download/index.jsp
Later, install an IDE. I suggest you to use Eclipse, I like it:
http://www.eclipse.org/
Another one very used is Netbeans:
http://netbeans.org/
Have Fun!
There's a short tutorial along with a great comparison table here. It's a Java tutorial aimed at C# developers.
Java is very close to C# you don't need more than eclipse (Actually I prefer it more than Netbeans) and search for any syntax you want in the Java documentation
JDK
First you need to download Java
development kit(J2SE 6) from Sun's
website
IDEs
eclipse or netbeans
Books
If you are planning to use Swing for
windows application - you may read
sun's tutorial
http://java.sun.com/docs/books/tutorial/uiswing/
Or if youa re a serious Java learner
get the Thinking in Java book from
here
http://www.odioworks.com/46-Bruce_Eckel%27s_Free_Electronic_Books.html
By the way, welcome to Java's world :)
Welcome to Java World. You can either use Swing or SWT for windows form like development. Here is a good link to get started with SWT http://www.developer.com/java/other/article.php/3330861/SWT-Programming-with-Eclipse.htm .
On top of what the other user's have already recommended, I would suggest getting familiarized with a J2EE container. It will come in handy in the future. Here is a link on what it is. JBOSS container is free and a pretty good one to use in my opinion. You can download it here.
For Windows app with SWT / AWT gui you should know there are plugins for IDE that help you to create your gui. Check for exemple Matisse for NetBeans.
Once you have Eclipse up and running, you should look at the Visual Editor Project plugin at Eclipse for developing windows applications. Hand-coding all of the SWT stuff is a big pain and hence the plugin will help.
netbensIDE will help u