I am reading Pharo by Example the book.
Yet I didn't find the "Class browser" in my "World" menu in my Pharo2.
Is it replaced by the "System Browser"?
Yes it is. System browser is Nautilus, a new advanced alternative for old class browser created by Benjamin Van Ryseghem.
You can still open the old one in Pharo 2.0 by executing Browser open but I would highly recommend to use Nautilus which is default for 2.0 version of Pharo.
You should not use Pharo 2.0 to follow Pharo by Example book, it has it's own image, which is an older version of Pharo.
You can download the right image from here: http://pharobyexample.org/image/PBE-OneClick-1.1.app.zip
After finishing learning with it, you can then use 2.0 safely :)
Related
I want to write a tiny "hello world" J2ME MIDlet. In a sample like this one, classes in javax.microedition.lcdui.* are used for display output. When I try to compile it in Eclipse, I get the error,
The import javax.microedition.lcdui cannot be resolved
I've installed JME SDK 3.4, and I'm able to run MIDlets that don't import javax.microedition.lcdui.*. I read somewhere that lcdui can be obtained from the wireless toolkit; and Oracle says that the wireless toolkit has been integrated into JME SDK as of 3.0+.
So why can't Eclipse find it?
OK, I think I know the answer now.
I got back to the JME SDK 3.4 documentation page on Using Sample projects, and created and ran an instance of UIDemo. It uses lcdui classes, but it runs flawlessly - no errors about inability to resolve javax.microedition.lcdui.*.
The difference appears to be that the working sample uses different libraries than the one I tried at first. The first one uses org.elipse.mtj.JavaMEContainer/Oracle Java(TM) Platform Micro Edition SDK 3.4/IMPNGDevice1,
while the one that works uses org.elipse.mtj.JavaMEContainer/Oracle Java(TM) Platform Micro Edition SDK 3.4/JavaMEPhone1. They contain different sets of jars, e.g. the working one contains midp_2.1.jar, while the earlier one has impng_1.0.jar.
A follow-up question might be, why doesn't IMP-NG have lcdui in it? Well, those who pay attention to what they're doing will have read that
This JSR [for IMP-NG] will define a J2ME profile targeting embedded networked devices that wish to support a Java runtime environment similar to the Mobile Information Device Profile (MIDP) version 2.0, but that do not provide the graphical display capabilities required by MIDP 2.0.
The Information Module Profile - Next Generation (IMP-NG) will be a strict subset of MIDP 2.0, where at least the APIs relating to GUI functionality (the LCDUI) are removed. Functionality not already present in MIDP 2.0 is not anticipated or desired. "
The next question might be, why did I end up selecting IMP-NG when I was going through the tutorial... when I really do want a MIDlet that does something graphically? But I'm not sure I care, now that it's working.
The new me sdk 8.2, as I understood after browsing all class and in packages, does not provides any class to develop user interface. not like sdk 3.4, that have many graphical components.
I would like to use IntelliJ Idea 13 (community edition preferably, but I would also like to know if this is only available in the professional edition) instead of WebStorm. The answer (written by a JetBrains official as far as I understand) to this question sound like it is possible, it says (if I understand it right) all the functionality of Idea derivatives like WebStorm is is available in Idea plug-ins. But I still can't find the right plug-in to create static (HTML+CSS+JS code, no Java) web projects. If I try to open a WebStorm project Idea says it doesn't understand "WEB_MODULE" module type. What do I have to I set-up?
For those using IntelliJ IDEA 14.x.x Community Edition, the "Static Web" option in Projects or Modules only seems to show up after the Phonegap/Cordova Plugin has been installed (Settings->Plugins->Browse repositories).
As Andrey mentioned, HTML+CSS+JS support is only provided in Idea Ultimate. No additional plugins have to be installed (unless you need Vue.js support or like to use Live Edit - these plugins, along with some others, are not bundled with Idea and have to be installed from the repository (Preferences | Plugins))
IDEA 12 Ultimate: "New Project" -> "Web Module"
IDEA 13 Ultimate: "New Project" -> "Static Web"
IDEA 14 Ultimate: "New Project" -> "Static Web"
IntelliJ IDEA Ultimate 2020.1
Entries named 'Static Web' in the File | New | Project.. dialog were renamed to 'JavaScript'.
For generic static Web projects, you need to select a new JavaScript project in this dialog.
As alexbk said for 15.x.x it remains the same. You also have to install Phonegap/Cordova Plugin in (Settings->Plugins->Browse repositories) and restarting Intellij IDEA afterwards.
I was looking for a good exploit to use as my final project for security class so I though for JRE 7u5 bug to exploit using Metasploit.
Where I can download that version of plugin for FireFox/IE/Chrome, for whatever browser?
I Googled for hours now and I can't find a link =?
While the older downloads are not listed any more, I think you'll find that they follow a well-defined naming pattern. For example, look at the download links on this page and modify as needed:
http://www.oracle.com/technetwork/java/javase/downloads/jre7u9-downloads-1859586.html
Not sure about Chrome, but I believe installing JRE on Windows adds it as browser plug-in for IE and Firefox. If not, follow these instructions.
I need to distribute a javafx 2.1 application but the client doesn't want to be asked if he wants to install javafx 2.1. It should be automatically installed. Does someone know how to wrap it in a dmg and in an exe package??
Thank you very much in advance.
There is a tutorial here: http://fxexperience.com/2012/03/packaging-javafx-applications-as-native/
and there (although for 2.2): https://blogs.oracle.com/talkingjavadeployment/entry/native_packaging_for_javafx
Finally I got it !!!!
I'm going to explain how I got it from my perspective. Sorry if it sounds a little bit dummy but I'm not used to build desktop applications and with a new technology as javafx is even more difficult for me.
Download the latest version of the jdk (in this case the 7.0 one).
Follow the steps from the tutorial and include your .jar and the jfxrt.jar
As a main class I set com.javafx.main.Main
Create the application and now, the most important part:
Once the application has been created, open it (right click on the app and "show package content". Go to the folder: Content/Resources/Java.
Do the same operation with the vm: go to /Java/JavaVirtualMachines and right click on the 1.7.0.jdk to open the Contents folder.
Copy ALL the .jar and .dylib from the jdk to the java resources in your application
Run the application and it will work :)
Does anybody knows good IDE that will allow me to develop flash application on Linux?
You may find some useful suggestions over here.
I use Flex Builder for Linux to build applications using Flex. However it can be a bit fiddly to set up currently due to it requiring newer the latest version of the AIR SDK (see the release notes on how to upgrade). Also the MXML editor broken with Eclipse 3.4, so you'll want to stick with 3.3 until they release a patch, or patch 3.4 yourself according to this (untried by me).
In addition to Flex Builder, you can use FDT by PowerFlasher, awesome product.
Website:
http://fdt.powerflasher.com
I don't mean to sound a bit mean, but Noldorin's answer is no good at all and misleading, in fact it is fact-less. Flash development restricted to Windows? REALLY?!?!
I've wrote a command line tool called LFD to make it easier to develop flash applications on Linux.
However LFD mainly is a util tool based on Flex SDK. You may use your favorite code editor like vim or emacs to edit codes. It's not an IDE.
May it help you!