When using Run As -> Web Application for a GWT app in STS, a Development Mode view is opened that contains a clickable link that in turn opens a browser and tests the GWT app...
What are the rules behind changing code while the code is running in the Development Mode. Does the Development Mode reflect these changes? Do you always have to terminate and restart Development Mode?
Any tips for how to speed up the loading of the link in Development Mode?
I would pose the same questions for Debug As -> Web Application.
Thanks!
The answer really depends on if you are running with "Debug As" or not. Actually, the whole topic is a little bit more complex (differentiating between server side/client side code, restarting vs refreshing vs reloading, ...), and instead of repeating myself, I will just provide you with a link to my answer here.
Note: The Google Plugin/GWT SDK behavior isn't specific to STS.
No, you don't have to restart. Just saving the files is sufficient. Another way to develop is to debug as a GWT app and then open the hosting html/jsp page in a browser and add the &gwt.codesvr=9997 at the end of the URL.
Related
I work on Eclipse Luna on my windows 7, the java version insatlled on the computer itself is up to date.
I build some simple JApplet to see how it runs on an html page in my computer. I mean not through
'run as applet' in eclipse, rather on a real html page.
But I can not run it due to the restriction - "Application blocked by java security". How can I see it? do I must get certificate for just simple trial?
If yes, how to do it with eclipse? Is it a short procedure? Can I see the applet runs without it?
Thanks in advance, Liron
Are you sure that you have enabled Java for your web browsers? Here are instructions for Internet Explorer:
Click Tools and then Internet Options
Select the Security tab, and select the Custom Level button
Scroll down to Scripting of Java applets
Make sure the Enable radio button is checked
Click OK to save your preference
i need to develop in java an application that accesses local resources, mainly a webcam, and possibly a wacom bamboo pen tablet. It should take pictures and notes and then post them to a web server.
The ways i can think of are:
use applets
use some kind of standalone app created via JavaFx (or swing or similar)
Which way would you go about it? Are applets considered a viable/secure way to achieve this?
Thanks
I would go the standalone app route. I always turn Java off in my browsers because I can never remember which specific version has security bugs.
If you build it as a desktop app I think you could quite easily convert it to be an applet later on if you wanted.
I am trying to create an application using SWT Browser. Is it possible to integrate Google Chrome as browser into Eclipse (not as external web browser)?
No, as of current stable release of google chrome, you cannot use it inside SWT. The reason is that google chrome (and essentially chromium) doesn't support ActiveX (like IE, Firefox, Safari etc) but is based on NPAPI. (Note: I am considering that you are working on Windows machine as you haven't mentioned in your question !!)
But there are projects which are trying to make an embeddable version of chromium. See these links:
Chromiumembedded
Is Google Chrome embeddable?
You can set it through Eclipse UI.
Goto : Window > Preferences > General > Web Browser
Select "Use External Browser" radio button
Click "New" button to add a new browser eg. Chrome !
Click Apply + Ok
... and you have it working !
Bug 405031 - [Browser] implement Chromium support
https://bugs.eclipse.org/bugs/show_bug.cgi?id=405031
If you can not make it through UI, Try to edit settings in the following file.
YOUR-WORKSPACE\.metadata\.plugins\org.eclipse.core.runtime\.settings there will be a file called org.eclipse.ui.browser.prefs open it with any text editor and change the appropriate values, It is self descriptive you can easily find out what to change and all. Have a back up of the same before you modify.
Hope this helps you.
EDIT: Restart your eclipse to effect the above change.
To integrate Chromium into Eclipse or SWT applications you can use https://github.com/equoplatform/chromium-swt.
Can I run Java applications (Java Web Start) on iPad?
Looks like this is not possible, but someone suggested using Cloud Browse (an application I couldn't' find) to run Java.
Any solutions?
UPDATE: Cloud Browser is an application that was available on the App Store but it was removed my Apple. Cloud Browse would process the web site externally and then stream the web site content to your iPad screen (something like video streaming).
No, you cannot run Java programs on the iPad (or any iOS device). Apple's license terms forbid running applications that can execute code downloaded from the Internet (which is what Java Web Start is all about).
No, as staffan said, Webstart will not work. However using CloudBrowse, an applet can work. It looks like the idea behind Cloud Browse is that the browser gets rendered on the server and video of the web page get streamed to your phone. This way, it appears to the user that applets or flash are running on the ipad.
I tried CloudBrowse on my IPAD as I've got a Java Applet that runs inside a brower and wanted it to work on my Ipad.
I found that it works pretty well. The Java Applet has a 3D animation, it's not as smooth as running on Windows/Mac through a normal web-browser, but it's pretty good.
I paid for full version, wasn't that expensive and to me, worth it. Opens up the power of using Applets but within Ipad!
Check it out here ... 3D sailing replay.
I have been tasked with creating an application for a company to store current customers, assign agents to them and work out distances between prospective customers and current customers, for use at trade shows when a new company comes to us to place an order. I have started on this already, but ensuring components do not overlap is boring and kinda tedious.
I would like to write it as a web application, since I am getting really good at .net (VB). However the application is required to work offline. This means the company must install Visual Web Developer or Visual Studio in order to run the application. The company does not what to have to do this and to have to start VWD / VS every time they want to run the application.
So my plan is to make a Java app which creates an "internal server" (such as the one created when you run an app from VWD / VS) and then loads a locally stored VB.Net page in a web browser. The reason for this is that the browser does all the laying out for me, and I am good at data-oriented websites with .net in any case.
Can anyone tell me how to set up the server or point me to a good resource / tutorial to teach me how to do this?
You don't need Visual Web Developer or Visual Studio to run the application. The web server that Visual Studio uses for debugging is called Cassini, but you don't need that to run the production version of your application. What you want to do is actually host your ASP.NET application in Internet Information Services (IIS) right on your Windows machine.
You can read through some resources on setting this up in IIS 7 on MSDN: http://msdn.microsoft.com/en-us/library/ms178477.aspx. Or, if you're using an older version of Windows / IIS, there is a good tutorial on IIS 5/6 here: http://www.beansoftware.com/ASP.NET-Tutorials/Set-Up-IIS-ASP.NET.aspx