I have two questions:
Background: I am trying to create a RESTful Java API for Java back end server which I have already finished.
1) Researched online, and the best way to do this by using Eclipse, is it possible to create a RESTful Java API (using Jersey) without having to use Eclipse? If so how?
2) Let's say I do use Eclipse. After completion, can I transfer the project to a Linux machine and run it there? (if it doesn't have Eclipse). My Linux machine will be the main host, I'm currently working on a windows machine.
Any feedback on this will be greatly appreciated!!
Thanks!
Related
I have just deployed Eclipse Neon in a Windows 7 environment (coming from many years of using Netbeans) and the Google (java) App Engine environment (as Google instructs and all works).
Using the standard gae 'hello world' example, when I make a change to the text on the sample 'Hello App Engine Standard' .jsp, for example changing that text to 'Hello hello', I have two issues:
In Eclipse I have to save and then hit F5 to refresh. Is there any way that Eclipse can auto-refresh on save like Netbeans does?
After saving and hitting F5 I then need to reload my browser 4-5 times before the trivial change shows up. Netbeans does it instantly. Does anyone have any idea where I start looking as Eclipse is totally new to me or is this just the way Eclipse works?
Thanks
If you are using the Cloud Tools for Eclipse plugin, you can set the publishing delay on the server as follows:
Double click on the local devappserver in the Servers view:
In the editor that opens up set the publishing interval to 0 seconds:
I had previously done some work in java GAE. Eclipse was pretty terrible frankly ended up switching to intellij. Shortly after I ended up switching to python for it. I use pycharm from the same company, you need the pro edition sadly, also here is a great lib for it supposedly it runs fairly similarly in terms of speed in GAE compared to java. Also endpoints will generate client code for you with little work.
I built a java desktop application with Java8 and JavaFX. And everything works fine.
But now I have a new challenge! I googled a lot about how to self-update a java desktop app, but all the results I found were old.
Is there an Open Source library that can manage self-updates for java applications like https://github.com/Squirrel?
If not, what is the best way to build something that will allow my desktop app to self update?
Thank you.
There is a lib called UpdateFX which handles the update process for you. Only drawback is that it only works with single jar apps so if you are using extra libs you have to extend it.
I am new to Java Applets.
I have the following situation: the client asks for a Java Applet to do Function1, i already have this Function1 developed and tested but in C#. so i say that i can use my C# dlls in Java applet.
I already tried to use UnmanagedExports and it works fine with simple cases, but i faced a problem when i have dependencies for the dll that is called from Java Applet. the problem is that Java Applet crashes when the dll have any dependencies and i did not find any solution for this case.
My Questions are:
1- How to solve dependencies problem using UnmanagedExports?
2- If no solution for problem 1, what is the best approach that i should use to complete this task.
I think that Java Applets can setup an application on client PC, this application can run on a standalone app context (this application will be a c# application that can perform the task on the background and gives the feedback to the Java Applet). Is this possible?
To answer your first question, try Dependency Walker for resolving dependencies for a specific DLL.
Trying to run basic java application (backbone.js and jax-rs) I was pleasantly surprised that modifying js or html file in src/main does not require application rebuild. Just refreshing it in browser is enough to update the application.
However changing java file, I can't find how to make application be updated locally.
Using Eclipse it's automatically compiled into target/classes, however applicaiton is not updated in browser. I can't find any bees command to cause update. I don't see compile command also.
Killing running tomcat and 'bees run' makes the trick, but the question is, if instant update is possible in case of basic java web application?
I'm not sure how to do it with a normal Java app. One option would be to use Playframework has this auto-reloading stuff built in, and is supported well on CloudBees. http://wiki.cloudbees.com/bin/view/RUN/Playframework
You need to use something like JavaRebel or Javeleon if you wish to reload Java classes in a running application.
I've created a standalone java application using Netbeans. The application works in ubuntu 10.04 environment. Now I want to create a setup for my application so that I can distribute it to others. Also the path variables need to be changed depending upon the system on which i is installed. Can anyone suggest me how do I do so?
Hello you can make an installer for your application.
In the link below you will find a nice help about izpack installer.
http://www.imrantariq.com/blog/?p=89
Link below contains a detailed pdf to make installer with izpack.
http://www.imrantariq.com/blog/?attachment_id=112
cheers
Imran tariq
Try Flexera's Install Anywhere. It will suite your requirement. It offers lots of stuff customizing the installation process, customizing the UI, etc; Install Anywhere
I suggest you to use izpack which multiplatform and is free (at least as beer).
You can package your app as a JAR if it's a Java app that runs from main, a WAR if it's a web app deployed on a servlet/JSP engine, or an EAR if it's an EJB app that runs on a Java EE app server.
All these presume that your client has a JRE, servlet/JSP engine, or Java EE app server to run the app.
You may use the osxappbundle-maven-plugin for Mac support. You don't need a mac to use it.
http://mojo.codehaus.org/osxappbundle-maven-plugin/
Nobody mentioned NSIS.