Is the Open Source Jalopy Eclipse plugin compatible with Ganymede? - java

After much searching, I found the download for the eclipse version of jalopy. Is this compatible with Eclipse 3.4? It's dated 2006.
I've copied the extracted folder to my plugins directory and run eclipse -clean, but I can't find anything matching 'jalopy' in preferences.
If it's not compatible, are there any (free) alternatives?

Just an update:
Note: the latest eclipse3.5 Galileo code formatter now:
supports most of Jalopy formatting option.
has made quite a few improvement on formatters (look for the term 'formatter' in those building notes of jdt-core.
It also can be run from the command-line if needed.
For a specific formatting option which would not be correctly managed by eclipse, you can define a codeFormatter extension point. More practical details in this SO question.

i'm told that open source version of jalopy is not for commercial use.
eclipse itself has good source code formatting capabilities. Go to java | preferences/settings. type format and you should see the various options.

The answer is 'yes'. Preferences are in Window > Jalopy Preferences, and it's run from the right click context menu. Seems a little buggy, though.

Related

What project files does Visual Studio Code create via its Java extensions?

I give a computer programming course I have written, and I recently switched to recommending Visual Studio Code in the course. We are starting out with the basics, so I just wanted a simple editor. We started learning Git, and one student's repository suddenly had all sorts of cruft in it, including:
.settings/
.vscode/
.classpath
.project
In particular the .settings directory had all sorts of Eclipse settings, such as I would expect to see in an Eclipse project.
The student explained to me that these came from VS Code after installing its Java extensions. But why are the VS Code Java extensions creating Eclipse files? And where is all this documented, so that I can update my lessons with the exact details and avoid this problem in the future?
Thanks in advance.
Simplified the Language Support for Java™ by Red Hat is the headless Eclipse Java IDE integrated into Visual Studio Code via the Language Server Protocol (LSP). See the self-description of the extension:
Provides Java™ language support via Eclipse JDT Language Server, which
utilizes Eclipse JDT, M2Eclipse and Buildship.
Except for .vscode/, the mentioned files are Eclipse Java IDE files.
Because in Eclipse these files are not intended to be edited manually, there is little or no documentation about them (the Java compiler settings in .settings/org.eclipse.jdt.core.prefs are similar to the command line arguments of the Eclipse batch compiler).
For example, the documentation of the Java extension recommends using the Eclipse Java IDE to edit the formatter settings (which are also stored in .settings/org.eclipse.jdt.core.prefs) and concludes:
No it's not an ideal solution, but it should be done only once, unless
you regularly change your formatter settings.

IntelliJ IDEA 17 - ASM Bytecode Outline isn't working

I am using IntelliJ IDEA 2017.1.4 as my IDE. Recently I have found a plugin called ASM Bytecode Outline which is actually what I've dreamed of. I need such plugin so that I can convert Java code to ASM code or to bytecode easily.
I have installed the following plugin and restarted my IDE. Then I was expecting to be happy, however I was disappointed because the plugin seems not working:
Simply nothing.
I have tried the following:
Recompile and rebuild the project.
Restart IntelliJ.
Reinstall the plugin.
Restart my PC.
However, as you see me asking here now, you can guess that none from what I tried has worked, sadly. I clearly understand that the plugin might be pretty old and was not updated for years, but I still need at least something similar that can convert Java code to ASM-ready code, like:
.
Is there a way I can solve this, or is there any other similar solution (not required to be an IntelliJ plugin) for what I want?
I updated the plugin and now it works fine with newer versions of Intellij IDEA.
You can download it from here: https://plugins.jetbrains.com/plugin/10302-asm-bytecode-viewer
The source code can be found in here: https://github.com/elitegit/asm-intellij-plugin
It includes the latest version of ASM library as well.
You can use the plugin in 3 different ways:
Right click somewhere inside the code editor and choose "Show
Bytecode Viewer"
In the "Code" menu, choose "Show Bytecode
Viewer"
Right click on the java file in the Project window and
choose "Show Bytecode Viewer"
You can find the setting inside Settings => Tools => "Show Bytecode Viewer"
ASM Bytecode Outline isn't compatible with IntelliJ 2017.1.4. The last time this plugin was updated was September 2015. Here's a link to the plugin page on JetBrains' website: you can see that it stopped being compatible in IntelliJ 14.
Alternative
A built-in bytecode viewer has been available in IntelliJ for a while. Use the menu View -> Show Bytecode to view the bytecode for one of your classes. See this link for more details.

Netbeans scala javadocs missing in Netbeans 8.0

I've been looking into scala lately and from the conciseness and language features I'm completely thrilled.
I have netbeans 8.0 running on ubuntu 12.04 and downloaded scala, edited netbeans.conf (netbeans_default_options="-J-Dscala.home=...), installed plugins from plugin manager inside netbeans (ALL OF THEM). Then, I created scala project (not maven one) and tried out autocomplete. It works, compiles, runs, however, it shows no document found in autocompletion.
This is how I added javadocs Tools > Scala platforms > javadoc tab
I tried adding following ways:
added the entire scala api doc zip from http://downloads.typesafe.com/scala/2.11.2/scala-docs-2.11.2.zip
extracted the previous zip to scala-home folder under $SCALA_HOME/docs/javadocs/scala-docs-2.11.2 and added that
same as 2 but added $SCALA_HOME/docs/javadocs/scala-docs-2.11.2/api in netbeans
None of these pick up documentation! Of course, I could live without it, but it's such a killer for such a concise language where I could just find out stuff instantly from autocompletion. Also, I don't want to use eclipse special ide for scala because I don't want to throw out all the experience with netbeans out of the window and learn new IDE.
P.S. - Netbeans navigator also seem not to work in scala.
And I wonder why there's so little content on google for such a wonderful language?
There is no need to change to IntelliJ. Use the right build tool -sbt or Maven- and everything works fine.
In Netbeans you can use e.g. free Application Servers.
Netbeans support for scala seems pathetic so I just decided to jump to IntelliJ IDEA. It was little bit of learning curve but I'm glad I did because now everything was working (autocomplete, documentation, awesome SBT support etc. etc.)

Is there any way I can get a program that relies on Java7 and JavaFX2 to run "portably"?

I'm writing a program with Java7 and JavaFX2, but I'll need to show it to people who only have access to machines with Java 6 installed (with no JavaFX).
Is there any way I can find a solution to this short of asking them to install Java7 and JavaFX2?
Perhaps you can create a self-contained application package by "bundling" your program with Java 7 and JavaFX 2. That way you don't have to worry about what's on or not on your user's machine.
You can read more about self-contained application packaging at http://docs.oracle.com/javafx/2/deployment/self-contained-packaging.htm.
Theoretically yes, but you have to check if that is conform to the license conditions of Sun/Oracle the owner of JavaFX:
You could sue tools like http://one-jar.sourceforge.net/
They pack all your java into one jar.
Another possibility you could obfuscate your application and include JavaFX.
But this, too might violate the license conditions.
Both solutions might be more work, than the effort off installing JavaFX to the (one)clients computer.
Try JavaFX2 for JavaSE6
On page: http://www.oracle.com/technetwork/java/javafx/downloads/index.html
Download Download JavaFX 2.2.3 for Java SE 6 ...
If you are using Eclipse JDT, you can configure your projects "Java Compiler", by "Enable project specific settings", to "Compiler compliance level" value 1.6. This should produce bytecode in a version suitable for Java 1.6 VM. I suppose, but am not sure, that Eclipse shall also warn you if you use library elements not present in the 1.6 library version; though you can be careful about that with or without warnings. As with the previous solutions, JavaFX you can just package in your application's JAR if the license agreement allows it.

Eclipse IDE for C/C++ Linux Developers CANNOT run my java application

I installed Eclipse IDE for C/C++ Linux Developers to write some cpp codes. As I understood it, no matter which version of Eclipse I use, it always can be used to writing some java source codes.
I did this:
File->New>Java Project->...
Wrote a simple "hello world". I have confidence that my hello world is correct.
When I wrote my code, Everything went well.
But when I right clicked my new project, I found there was no "Run as","Debug as"
Press Ctrl+F11. It said "the selection cannot be launched, and there are no recent launches"
Run->Run Configurations. I double clicked Java Application. It said "No tab group defined for launch configuration type org.eclipse.jdt.launching.localJavaApplication"
What should I do?
How can I run my java applications?
Quite contrary to what you assume, eclipse isn't a Java IDE with some other addons. Eclipse is just a platform. As the package comparison shows, the C/C++ package doesn't come with the Java development tools.
Make sure you have correct eclipse version is downloaded? There will be separate eclipse version available for Eclipse for java.
http://www.eclipse.org/downloads/packages/eclipse-ide-java-ee-developers/indigor
Hope this help.
If you have the JDT installed, then make sure you are in the Java perspective. Either:
Window->Open Perspective->Java (default)
Use the perspective switching tab, usually the top-right of your code editor
You can install the JDT, if you don't have it by using:
Help->Install New Software...
Try to install follow this link http://www.eclipse.org/downloads/packages/eclipse-ide-java-developers/indigor if it's work. i think your eclipsec/c++ may be have a problems while install java. You can reinstall or using eclipse for java.

Categories

Resources