Embedding Executable JAR File In A Webpage

Feb 20, 2014

Embedding an executable .jar file on a webpage. I am not a programmer and we use Blackboard Publish to package our Blackboard sessions into a standalone executable .JAR file which gives the user the full Blackboard experience. We want to embed this file on our webpage, so I did some research and I understand I have to use a Japplet (?). I have tried putting the basic (J)applet code I found on the web (modified of course) onto the webpage (see code below) but I get a 'ClassNotFoundException' error. I don't have the ability to define the files that are in the .JAR created by Blackboard Publish. How I would go about embedding this file? I can look at the files within the .jar with Winzip but there seem to be loads of .class files and I am unclear which one my webpage is trying to find!

<APPLET CODEBASE="/Blackboard/" ARCHIVE="test.jar" CODE=test.class WIDTH=140 HEIGHT=45>
<(J)APPLET>

View Replies


ADVERTISEMENT

Executable Jar File - Will Not Load Data From CSV File

May 5, 2015

I have a small application that I have been working on for several months. It works great. Now when I created an executable .jar file for it, it will not load data from a .csv file. I have tried looking into everything I can think if. I checked file paths, etc. I am using OpenCVS to read the csv. Is there an issue with that when you include it into another .jar file? I am trying to log if there is an error but I don't even get an error. I just doesn't run past that statement...

View Replies View Related

How To Access A File Within Executable Jar

Nov 21, 2014

So let's say i have an executable jar and inside that jar is a bunch of files. How do I access files within my jar?

Assuming like, a main class is currently running and that is what's inside the manifest file as the main class inside that executable jar..

View Replies View Related

Obfuscating Executable Jar File

Apr 15, 2015

I made a project in eclipse and exported it with libraries into a jar file.

Now I need to obfuscate that jar file so it can't be reverse engineered or anything.

I just need something basic. Just where I put the jar file as input and it will output another jar file that is obfuscated.

I looked at proguard but it looks complex for something like this. I don't want to be spending ages making config files or anything... What I should use?

View Replies View Related

Executable JAR File - Decompile Using Androchef?

Feb 11, 2015

I have an executable jar file that I decompile using androchef. I have to use androchef otherwise I get to many errors especially with jd-gui. I need to know how to export the files after I have decompiled them with androchef so that I can edit a file then send to netbeans and rejar.

View Replies View Related

Running C Compiled Executable File In Java

Jul 10, 2014

I'm trying to run a command line executable file using java but there is no output. On the task manager a conhost process opens when the application is run. I've tried

1)try {
Runtime.getRuntime().exec("D: est.exe");
} catch (Exception e) {
e.printStackTrace();
}

2)String[] cmd = { "D: est.exe"};
Process p = Runtime.getRuntime().exec(cmd);
p.waitFor();

and

3)//Runtime.getRuntime().exec("D: est.exe", null, new File("D:"));

same thing happens i.e. nothing happens.

View Replies View Related

Use Classes From Non-executable In Executable Jar

Aug 8, 2014

I am trying to uses classes from a non executable jar called noexec.jar in an executable jar called exec.jar. With no defined manifest in the nonexec jar and a manifest in the exec jar. The folder structure where the jars are held look like so.

ROOT
/lib
|
---nonexec.jar
---exec.jar

With the class path defined in the manifest for the executable jar as Class-Path: nonexec.jar . However every time I run java -jar exec.jar, I get Exception in thread "main" java.lang.NoClassDefFoundError: What even though I am including nonexec in my class path why the classes contained within the jar are not being found?

This is the manifest file

Manifest-Version: 1.0
Class-Path: nonexec.jar .
Main-Class: start

View Replies View Related

Embedding Image In Textbox

Mar 4, 2014

Is this even possible? I would like to make it so I can drag drop an image into a textbox . . .

View Replies View Related

Embedding Windows Painter In A Browser

Dec 30, 2014

I'd like to know if there's a way to embed Windows Painter (mspaint.exe) in a browser. I'm not sure it's possible with Java and if it doesn't, any relevant reference to this subject.

View Replies View Related

Embedding Maps In Swing Application

Jul 28, 2014

I'm developing a java swing application in which i need to show the map of some area and allow user to put markers on it. I've goggled a lot on the topic but unfortunately i haven't got any how i can do it.

I came across some ideas like displaying a web browser in swing just like JXBrowser (i can't afford JXBrowser). And I'm also not sure if this way will allow me adding markers.

View Replies View Related

Applets :: Embedding Images - How To Include Actual JPGs

May 7, 2014

I have an applet that uses JPanels to draw images in. I want to include actual jpgs now instead. The applet points to a .jar file. I want to use any number of images here, do I have to include them all in the jar file or is there another way to "point" to them (like html)?

View Replies View Related

Run Jar Files From Webpage?

Jan 20, 2015

I am trying to run a java app from a webpage.

The java app is written with Netbeans.

Heres my files:

Java main class:
Java Code: package Classes;
import java.applet.Applet;

[Code].....

You can test the page here: Test page for launching the application via JNLP

View Replies View Related

JSP :: How To Access Image In Webpage

Jun 17, 2014

As my requirement I am storing the image link in database and through that link I need to access the image in the webpage. For this, I am storing images in my workspace. But the problem is, since my workspace is in C drive, I dont want to store those images in workspace because of the space matter. Can I store those images outside C drive and save the link in database? After that how can I access those in webpage?

View Replies View Related

JSP :: Develop Live Score Webpage?

Apr 1, 2014

I am trying to develop a live score webpage using ONLY JSP.

View Replies View Related

Sort Excel And Paste It On Webpage

Jan 13, 2015

import java.io.FileInputStream;
import java.io.IOException;
import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;

[Code]...

This is the excel sheet which is to be sorted and here I am stuck because I need to search "Type" if the country column from excel is uk or us.I am new to java and apache poi . I am stuck here . I have written the above code and everytime it gives me "single" as output and keep on searching that in google.

View Replies View Related

Read Text From Webpage And Show In A Modal

Sep 11, 2014

I am working in netbeans.

My task is that i want to read text from a webpage, [URL] ...., in my server that shows only the following inside brackets

{
"VERSION": "2.00.000"
}

I am using a js that has all the necessary functions of the project, the function for the button that will show a modal and currently is static, is like that

var imgAbout = $('#topright-menu ul.menu-divmenu > li > a > img[src$="about.png"]');
imgAbout.click(function(e) {
e.preventDefault();
var modal = (self.modal());
var content = "Version: 2.00.000 <br><br>" +

[Code] ....

I need to understand the mechanism that will accomplish such a task,, in general how can i do that ??,,

View Replies View Related

JSP :: How To Get Rid Of Webpage Expired Error When Clicking Browser Back Button

Jul 1, 2014

I am getting Web Page Expired error while clicking the back button of the browser, after submitting a form. The form method is POST. ( I have to keep it that way). I tried this code

<%session.setHeader("Cache-Control", "no-cache");
response.setHeader("Cache-Control", "no-store");
response.setDateHeader("Expires", 0);
response.setHeader("Pragma", "no-cache");
%>

In my jsp. Still it is not working. I also tried

<script language="JavaScript" type="text/javascript">
window.history.forward(1);
</script>

View Replies View Related

JSP :: Dynamic Webpage To Connect To Unix Server And Display Files

Mar 24, 2015

I want to develop a dynamic webpage (using JSP & tomcat hosted on windows server) which will connect to unix server and on button "Show Files" click on dynamic webpage it should display all the files present in the unix server.

The button click should display the files which i can see when i run "ls -ltr" in unix server home directory.

View Replies View Related

Servlets :: Gmail - Webpage Will Automatically Update Whenever New Mail Arrives

Apr 12, 2014

So, I've seen in google mail that the webpage will automatically update whenever a new mail arrives without the user manually refresh the gmail webpage. I'm curious how this is done. Is it polling? or is it something else? how is this done in java web app?

View Replies View Related

Browser Automation / Embedding Into GUI / Attaching To Existing Browser Window

Aug 7, 2014

What best API or whatever you call for browser automation? I mean clicking links, filling forms, gathering sources and other info. I already tried selenium WebDriver. It have all needed functions but there is no feature like attaching code into already opened browser so even doing google search it opens new browser window (opening takes ~5-10secs). Also I believe that there is no way that I could embed that browser into GUI.

Also tried WebSpecs and old Watij but also didnt found any way to attach or embed browser into my GUI.

So what I need is that I could create GUI with embeded browser and bunch of buttons. I click buttons then embeded browser clicks links, gets info etc.

View Replies View Related

JSP :: Reading Data From MySQL Database And Displaying Results On Webpage - HTTP Status 500 Error

Feb 13, 2014

I have created a jsp file which does the simple task of reading data from a mysql database and displaying the results on a web page. Please see below:

<%@ page import="java.io.*,java.util.*,java.sql.*"%>
<%@ page import="javax.servlet.http.*,javax.servlet.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/sql" prefix="sql"%>

[Code] ....

However, each time I run the jsp file in the browser with my localhost as server, I get an HTTP Status 500 error.

View Replies View Related

Extracting From Executable Jar

Aug 8, 2014

I am working on a card game and for lack of better terms, have royally screwed up my files. I do still have an executable jar that I would like to go back to if possible and try to redo what I messed up. What I was able to do was to use WinRAR and get ?encrypted? class files. Something that is obviously not editable. How can I go about converting these back to editable java files, if possible?

View Replies View Related

Using A Button To Run Executable With Arguments

Nov 8, 2014

I am new to JAVA. I need to execute a program, based on the OS. If I am on Mac, the program is a .x and if It is on Windows the program is .exe. The program also requires a line of commands attached to it (i.e. relap5.(x) or (exe) -i inputFile -o outputFile -r restartFile -s stripFile

Here is my coding

String in = " -i ", tfIntdta.getText();
String rst = " -r ", tfRstplt.getText();
String out = " -o ", tfOutdta.getText();
String strp = " -s ", tfStpdta.getText();
if tfStpdta.contains(".csv")
String run = in, rst, out, strp;
else
String run = in. rst, out;
// I want to execute either a .x file or .exe file, depending on if I am
// running the app on windows or mac
run relap5.(x) or (exe) (string run goes here)

View Replies View Related

How To Create A Sort Of Executable For Java App

Dec 25, 2014

when I am programming let say in VB using Visual Studio, finally I build .exe file that can be run on all Windows by double click.For Java I am using Eclipse and to run those apps I am using run from Eclipse.How I can create a sort of "executable" for my Java app that I would be able to run it by file click on Windows or Linux?

View Replies View Related

How To Call Executable Jars Using Jbutton

Aug 7, 2014

how run the executable jar files using JButton from another class file.I need, when i click the button then the executable jar file should be and display the output.

View Replies View Related

Program Runs Differently When Executable Jar

Jan 27, 2014

I have a little application that I made, it requires that I save data to a file in data/coins.cdp. When I run the application with java myProg in the terminal everything is correct, when I create the executable jar and run java -jar myJar.jar or ./myjar.jar everything also works. Even if I copy the jar to a different location, and run it through the terminal, it still works fine. Things get weird through when I copy the jar to a new location and double click on it, because then no folder gets created and no file is written.

Why is that?

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved