Can I create my own Installer using Visual Basic 2015? - 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.

Related

Can't find a guide for building my own SWT dylibs

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?

Detect lowest Java version supported

I'm working on a little Java app and I'm currently putting the installer together. This checks for perquisites, such as Java being installed, and prompts the user to download anything that's required.
I need to set a requirement for the minimum Java version I support (I'm building with 7). Is there a simple way I can detect what this would be? So if I'm using any classes etc. not available in earlier versions. BTW I'm using IntelliJ.
I'm not sure if the entire 'system tray' complicates things, but..
For deploying Java desktop apps., the best option is usually to install the app. using Java Web Start. JWS works on Windows, OS X & *nix.
The best way to deploy a JWS app. or applet is to use the Deployment Toolkit Script. (That script will do the 'version checking').

Java project template on Mac?

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.

Installing java program via CD

I have a program (java jar file) that I want to distribute on CDs. My friend told me that there are free/open-source CD installers available that automatically install your program onto the customer's computer.
Now I can't seem to find this on Google. So are there any CD installers that you would recommend that I can use (so I don't need to program one myself).
Outline:
My program consists of class files, sound files, source files (i'm open source) and images (packaged into a jar file).
I only need the installer to work for Windows computers.
I think IzPack does something like that.
You can look into Java WebStart which in Java 6 was enhanced to allow "launch-from-cd-and-install-to-harddrive" which mean that it can work as a very simple installer.
It requires a JVM already present. You can put the redistributable JRE on the cd too.
Launch4J is what I have used as my installer. It is really lightweight and has a nice GUI that makes things simple for the developer (one reason I chose not to use IzPack).
It makes things dead simple for both the developer and the user.
Your jar file is wrapped in a exe launcher.
If an up to date JRE is not detected, a bundled JRE is used or the user is prompted to download via java.com/download
Really, I couldn't have asked for anything simpler/better. Although you might get more functionality out of IzPack, if you want something dirt quick that can do everything the everyday developer needs, go for Launch4J.
P.S. Their splash screen option is a nice bonus :)
After running into numerous end problems, I finished the job with the use of Inno Setup.
Very quick and easy to use. Creates an installer similar to the ones you would see in popular programs. Gives you (and the user) the ability to create Desktop Shortcuts, QuickLaunch Icons and Startup folders. Allows you to add license information etc. Very simple and intuitive interface, I didn't have to read any documentation!
A big con: Only makes installers for windows. That met my requirements, but may not work for everyone.

Java programming requirements

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

Categories

Resources