Black screen displays When a the install4j installer is clicked - java

I am using install4j version 6 to create setup for my Java GUI application
I have compile my project with jdk 7 and also bundled jre7. I have been doing this over the time and it work seamlessly. I have just tried to do this with a new project and as i create the installer, when clicked a black screen displays please help me see this screenshot.
Any help please, to me i can not figure out the cause of this.
black screen

The "black screen" is a console window.
On the Installer->Screens & Actions step, select the installer and deselect the "Windows console executable" property, you probably have selected this accidentally.

Related

Java Windowsbuilder is not showing anything in the design tab and no class name in the main tab

I created a composite visual class and received the "The type org.eclipse.swt.widgets.Composite is not accessible" error. I went into fix project set up and had to manually update the class path. The error has not gone away and the tab doesn't show the class name. The tab is invisible until I hover over it and then an "x" appears to close it.
Additionally half the time when I open the class it doesn't show the option to switch between source and design. If that happens I have to close the workspace and reopen it to get Eclipse to show the source and design tab.
I haven't added any code to the class. It's the skeleton code Eclipse provides when you click "Create New Visual Class -> SWT -> Composite". It's my first time messing with a windows builder. I was really hoping I wouldn't have to manually code all the dimensions in Swing.
Code and error messages
Go to Help -> Eclipse Marketplace -> filter by popular and click install on WindowBuilder. I had a similar error some time ago because I've installed WindowBuiler by installing the separate dependencies instead of click the install button in the marketplace
1.Open Eclipse.
2.Click on Help.
3.Then go in Eclipse Marketplace.
4.Search for Windowbuilder.
5.Click on Installed button in Windowbuilder 1.9.4.
6.Then click on Update.
7.and Proceed further steps.
Reference Link: https://youtu.be/LgOMN3US6Bk

Can someone tell me how to get the menu bar to show in Eclipse?

First ever mac user, and the first thing I did was download Java 1.8 and Eclipse Photon for Java developers. Eclipse seems to be working but the file menu is gone. Google says the solution is to click on Window > Customized solution to get toolbar, but Window IS part of the toolbar.
I also can't seem to get snip to work or I'd include a visual, but one thing at a time.
Now, for a proper answer: all OS X applications display their menu in the same place at the top of the screen, and Eclipse is no exception. Here's how it looks, with the menu you're looking for highlighted in red:

Eclipse (SWT composite): How to run and where is build?

I am new to Eclipse and Java programming having mainly worked with Microsoft Visual Studio.
I installed Eclipse (Kepler 4.3) with no issues along with WindowsBuilder and SWT.
I created a new project adding in references to SWT, both WindowsBuilder JARS, and resty. Into the project, I created a new package and selected a SWT composite. I gave appropriate names.
The GUI designer came up with no issues. I added in a couple of controls. The idea is to create a hello world application, display that application, and build it. Eclipse has automatically build checked.
Okay, the IDE in designer view shows the GUI of my Hello World application and the source view the source, so no problems there.
I press Run, and the first time I had to select a run configuration, which I selected EclipseStarter. There was not many options. I click on run and nothing happens.
If I go to the project's bin package folder, I see a file with a ".class" extension.
Why does pressing Run|Run (Ctrl+F11) do nothingness? There is a brief hour glass showing, but then nothing after that.
How do I launch the application from within Eclipse?
Is the generated ".class" file the correct runtime? I double click on that and Windows does not know what to do with it?
The end platform will be CentOS, but Java as I understand things, should be platform independent, so my Hello World application should run on my Windows 7 Pro box just as nicely. (I did not try CentOS yet) as I want to see it work on my desktop and know what file to copy over.
I think you selected the wrong option EclipseStarter.
Try running it as a Standalone Java Application.
It is a Standalone Java Application that you're building, right?
(I mean, the analogue of a Windows Forms App in .NET)
1. I guess because you selected the wrong type.
2. Ctrl+F11 is for Running it, F11 only is for Debugging it.
3. The class file has to be run by a JVM, Windows cannot run it directly,
it is not anything like a native executable or like a .NET assembly
(which Windows 7 knows how to run). But as you're using Eclipse you
already have a JVM.
The solution is multi-fold.
I had to delete Eclipse and install the 32-bit version of everything. That simplified life, as 64-bit caused issues running.
Create a new package
From the toolbar, select "Create new visual classes" drop down. Select "SWT" --> "Application windows".
Create the application window
Press the play button, 8th icon having selected the package first.
That enabled to run my Hello World on Windows. The output is a .java.
I still have a problem running from the command line, but that is a different issue.
Summary: My main issue was creating a SWT application window first and that I should have 32-bit for everything.

Java 1.7 JavaFX 2.2 Troubles on Mac os x Mavericks

I am having some real trouble with JavaFX on my Mac at the moment which originated when experimenting with using the system menubar but has also lead me to discover another problem related to the built in full screen functionality.
Here is what I am doing:
Opening Netbeans and creating a new JavaFX FXML application.
I open the FXML file and add a menuBar to the scene.
I set the 'use system menu bar' property to true.
I build and run the application.
When the application is launched, no menu bar is displayed within the window (as expected) but the Mac system menu bar is still the Netbeans menubar. If I click on the desktop and then back on my application window, the system menubar is correctly displaying the menu from my JavaFX application.
I can access the menu and everything now appears to work correctly.
If I relaunch the application, the menu is incorrectly displayed as in the previous example. I use the full screen button on the right hand side of the application window to enter full screen mode. I move my mouse to the top of the screen to show the menu. My application menu is shown but is inaccessible (i.e. I am unable to interact with any of the menus on the menu bar). If i go back into windowed mode the menu bar is now displayed but is still inaccessible. If I follow the steps in the previous example everything now works as expected except for selecting the Quit Java menu option from the Java menu results in the application throwing the following exception.
Exception in thread "JavaFX Application Thread"
java.lang.NullPointerException at
com.sun.javafx.tk.quantum.GlassViewEventHandler$9.run(GlassViewEventHandler.java:738)
at
com.sun.javafx.tk.quantum.GlassViewEventHandler$9.run(GlassViewEventHandler.java:720)
at java.security.AccessController.doPrivileged(Native Method) at
com.sun.javafx.tk.quantum.GlassViewEventHandler.handleBeginTouchEvent(GlassViewEventHandler.java:720)...
System specifications:
Mac os X Mavericks 10.9.1
Java version 1.7.0_51
JavaFX version 2.2.51-b13
Netbeans 7.4
Java update tells me I am running the latest version.
Mac system update tells me there are no software updates at this time.
What I have tried
My research has led me to various discussions regarding a conflict between Java 6 and 7 on os x Mavericks, and that I should be installing the update here.
I have carried out the following:
Completely uninstalled JavaFX Scene Builder and Netbeans.
Completely uninstalled JDK 7 and JRE 7 as per the Oracle instructions here
Run the installer for the os x Java 6 update linked above.
Reinstalled the JDK (version 1.7 u51).
Reinstalled Netbeans and Scene Builder.
I was also going to try and revert to an older JDK version (update 45 or lower) but you have to sign up for an Oracle account in order to download these versions.
Update:
I have also tried installing Eclipse and using EclipseFX to create the JavaFX project but still observe the same behaviour.
Any help that anyone can offer will be greatly apreciated.
I have just downloaded Java 1.8 which was released today and it appears the problems have been fixed.

Java Control Panel doesn't want to save JRE changes?

I'm trying to add some runtime parameters to the Java Plug-In so that I can debug an applet in my browser. I go to the Java ControlPanel, click the Java tab, and click "View..." and add the runtime parameters. After I click OK and close everything, it doesn't work. So I go back to the Java Control Panel, and the changes I just made are gone!
Has anyone else seen this? What's going on? Is this broken?
On Vista with UAC enabled?
Find the "Command Prompt" in the Start menu.
Right click on it.
Select "Run as administrator"
Click "Continue"
Run C:\Program Files\Java\jre6\bin\javacpl.exe (adjust to wherever you have Java installed)
Make your changes.

Categories