I am using:
Eclipse for Java EE developers
JSP
JDK1.8.0
Dynamic Web Project
I want to show an applet in my jsp page, but I am unsuccessful.
The issue is: when I run the page index.jsp page it shows an empty box in the browser having a little icon on top-left corner.
The screen shot of the whole scene is provided below:
The overview of the scene can be seen in the picture
Running it directly from Eclipse shows:
Running directly with eclipse shows this
If we run the index.jsp page with this coding:
<jsp:plugin type="applet" code="gui.MainFrame.class" codebase="gui" width = "400" height = "400">
</jsp:plugin>
Output: only shows an empty box having a little icon on the top-left corner with the size 400 width and 400 height.
Please guide me, I am stuck on it. This is my final year's project.
Thanks.
The contents of WEB-INF aren't served to browsers, including the WEB-INF/classes folder where all of this project's Java sources are compiled and deployed to on the server. You'll have to have its compiled class files in WebContent but outside of WEB-INF.
My suggestion would be to try creating a second Java source folder and explicitly setting its output folder to be somewhere in WebContent but outside of WEB-INF. It would then not require any work on the Deployment Assembly property page for the project because that page only affects server-side deployment--everything else under WebContent, including the applet class files, should just copy over.
Edit: It'll look like this, and you must have the option to set output folders for each source folder enabled:
Turn this code="gui.MainFrame.class"
To this:
code="MainFrame.class"
And try to make sure the .class file is in your classpath
Related
This may seem very small thing but it annoys me much since I'm used to code in Eclipse. When I double click a java source file in Eclipse it shows classes inside the file (expanding contents of java file) as marked by red circle in the image below. I wanna disable this behavior, I have used Eclipse for a long time and it has never been like this.
You can go to Prefences --> Content Assist and Enable/Disable the contents of Java file
[![enter image description here][1]][1]
Thanks,
Raghava
This is a bug in Eclipse, and several people have reported it, e.g., here.
One workaround is to change the "open mode" in the General preferences to single click", which does not have this annoying behaviour.
For example I want to change the :
C:\Users\media\workspace\TESTPROJECT\war\com.media.project.medistart\sc\skins\Enterprise\images\edges
I open them in Paint and draw new one and overwrite the existing.
when i run my application nothing has changed...
Someone know how i change the files in the .jar maybe it would work
Override the file stored under war folder of your project.
Clear the browser cache first (Ctrl+Shift+Delete) and run the application.
Here is the structure of war where images are stored one for each skin or theme
war
|__WEB-INF
|__testproject
|__sc
|__skins
|__Enterprise
|__Images
|__edges
|__edge_B.png
I can't work out how to use Image files in Eclipse. I've saved the files to what I think is the relevant folder (the same file where all the classname.java files are stored but the images aren't showing up on in eclipse. I've attached a screenshot by way of explanation
Try dragging the images into the physical tree view in the package explorer. That should work, otherwise, try refreshing the Package Explorer.
The Package Explorer view can be finicky about what content it shows. The files are there, are visible to Eclipse, but just aren't visible in that view. Try a different nav view, such as Project Explorer. The view that most faithfully shows the actual file contents of a project is Navigator.
I just lost another 20 minutes because my IDE (sometimes I use IntelliJ, sometimes I use Eclipse) opened a file that was from the "bin, target, or build" folder... and I mistakenly thought it was from the src folder.
As I developer I almost always want the source code to look at, not build output artifacts... is there away to make the IDE either not present these as choices, or have it warn me visually that the file is not source (like surrounding the editor in a thick band of zebra stripped yellow and black lines? )
In IDEA output folders are excluded by default and are not visible in the Project View. Navigation to files from excluded folders also will not work. Double check that these folders are marked as Excluded in the Project Structure | Sources tab.
In Eclipse I use package explorer to navigate between source files, jsp, etc. It does not show any build/target/bin folders and there possibility to configure filters for it (Small down faced arrow next to titlebar)
Im working on Eclipse Helios Service Release 1. I found unusual red mark on the JAR file icon in War/WEB-INF/Lib/ folder.
Any body knows what does this means?
Take a look in your problems view (may be called markers depending on your version). You should see a message corresponding to the decorator on the jar. If the problem is still not obvious, post back the text of that message here.