Debugigng Flex and Java on Adobe Flash Builder and Eclipse - java

I am new to the flex development world. I have an environment where Flex is the client and Java is on the server. The IDE's I am using for each are Adobe FlashBuilder 4.5 and Eclipse.
The problem is that I am stuck at debugging across the two languages at the same time. I begin debugging in Flex and at the same time I set a couple of breakpoints in Eclipse. However, when time comes for the program to shift to the server side, it doesn't quite enter debug mode in my Eclipse IDE.
Perhaps I am missing out on linking the two, but from what I have read is that this is automatic. Looking forward to your answers :)

Related

Eclipse Oxygen: How to automatically upload php files on remote server

I'm coming from NetBeans and evaluating others and more flexible IDEs supporting more languages (i.e. Python) than just php and related.
I kept an eye on Eclipse that seems to be the best choice; at the time I was not able to find an easy solution to keep the original project on my machine and automatically send / syncronize the files on the remove server via sftp.
All solutions seems to be outdated or stupid (like mounting a smb partition or manually send the file via an ftp client!
I'm not going to believe that an IDE like Eclipse doesn't have a smart solution of what I consider a basic feature of an IDE, so I think I missed something... On Eclipse forums I've seen the same question asked lots of time but without any answer!
Some suggestions about is strongly apreciated otherwise I think the only solution is stick on one IDE each language I use that seem to be incredible on 2018.
I'm developing on MacOS and the most interesting solution (kDevelop) fails on building with MacPorts.
Thank you very much.
RSE is a very poor solution, as you noted it's a one-shot sync and is useless if you want to develop locally and only deploy occasionally. For many years I used the Aptana Studio suite of plugins which included excellent upload/sync tools for individual files or whole projects, let you diff everything against a remote file structure over SFTP when you wanted and exclude whatever you wanted.
Unfortunately, Aptana is no longer supported and causes some major problems in Eclipse Neon and later. Specifically, its editors are completely broken, and they override the native Eclipse editors, opening new windows that are blank with no title. However, it is still by far the best solution for casual SFTP deployment...there is literally nothing else even close. With some work it is possible to install Aptana and get use of its publishing tools while preventing it from destroying the rest of your workspace.
Install Aptana from the marketplace.
Go to Window > Preferences > Install/Update, then click "Uninstall or update".
Uninstall everything to do with Aptana except for Aptana Studio 3 Core and the Aptana SecureFTP Library inside that.
This gets rid of most, but not all of Aptana's editors, and the worst one is the HTML editor which creates a second HTML content type in Eclipse that cannot be removed and causes all kinds of chaos. But there is a workaround.
Exit Eclipse. Go into the eclipse/plugins/ directory and remove all plugins beginning with com.aptana.editor.* EXCEPT FOR THE FOLLOWING which seem to be required:
com.aptana.editor.common.override_1.0.0.1351531287.jar
com.aptana.editor.common_3.0.3.1400201987.jar
com.aptana.editor.diff_3.0.0.1365788962.jar
com.aptana.editor.dtd_3.0.0.1354746625.jar
com.aptana.editor.epl_3.0.0.1398883419.jar
com.aptana.editor.erb_3.0.3.1380237252.jar
com.aptana.editor.findbar_3.0.0.jar
com.aptana.editor.idl_3.0.0.1365788962.jar
com.aptana.editor.text_3.0.0.1339173764.jar
Go back into Eclipse. Right-clicking a project folder should now expose a 'Publish' option that lets you run Aptana's deployment wizard and sync to a remote filesystem over SFTP.
Hope this helps...took me hours of trial and error, but finally everything works. For the record I am using Neon, not Oxygen, so I can't say definitively whether it will work in later versions.

Eclipse Neon running GAE is incredibly slow to refresh

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.

View remote Tomcat logs in Eclipse Console

I am experimenting with a combination of Vagrant+VirtualBox+JRebel+Eclipse+Tomcat to develop a Java Servlet application. My Tomcat instance runs in a VirtualBox VM, which for Eclipse purposes means it is a remote server. I was able to get hot deploying (JRebel) and debug mode working.
I haven't yet found a good way to get the logs to show up in Eclipse, though. Ideally, I'd like something very similar to the Console view that Eclipse/WTP gives for local Tomcat instances. Some features I like:
Lines in stack traces are clickable, taking me right to the source file
Easily searchable
Highlighting (errors show up in red)
Shows up right in my IDE
Can be cleared when I'm sick of seeing too much
The first two features (clickable and searchable) are the most important to me. Does anyone know of a plugin or separate app that can accomplish this?
LogViewer appears to be abandoned (and possibly non-functional in current Eclipse versions), and JLV doesn't appear to have clickable source lines.
NTail might do the job. It hasn't been updated since 2010, but it seems to work on Eclipse Luna.

Compiling Eclipse project without Eclipse after finishing

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!

Flash Builder With Java Integration

i am trying to build a desktop application that requires no run time, therefore Flash builder seems to be the only choice.
There is a Flash Builder and Java Integration as show here
but it seems to be a server that is supporting it.
Its more applicable to website?
Is it feasible to do it , if i am building a desktop application?
Flash Builder, if used to generate a desktop app, will require Adobe AIR to be installed, which is a small runtime. If you prefer, it can accessed as a website as well, which will require the flash player be installed.
Flex, the language used by Flash Builder, has to be able to connect to Java somehow. You can use SOAP objects, BlazeDS, JSON, HTTP or even PHP/JavaBridge combo (Zend Server Community Server and PHP 5.3 have one).
The point is, there has to be an accessible server somewhere with JAR files on it. How you get to it is totally up to you.
For more FlashBuilder & Flex info, I recommend http://adobe.com/devnet/flex
Java require a VM to run, so there might not be a way to do it without one.

Categories

Resources