Posts Tagged ‘java’
php challenge perhaps?
Is there any PHP expert out there willing to look over some code i have and help me with somethin? the codes kinda long to paste here.. I have a db created on my server.i get ot add books, (name, price, cover, description).. then i get to perform searches for title matching kewords..all tht is done. Now for every search i get back, i get a link tht allows me to open and view the description of the book. NOw the question becomes how do i highlight all the keywords that appear in the description? e.g. i run a search on “java”.. i get back all titles that include java. then wen i open the link, i want to hightlight or bold all the “javas that appear in the description. Everythn is set up, just the highlighting or bolding part is the prob.. anyone willing to look over my code and help? i can zip it to you. thanx php experts.. the program operates as a website, but just on my server..
Connect Java program (Non applet) to MySQL on a web server?
Is there a way to connect to a MySQL database from a non-applet java application? All the API’s I’ve looked at seem to be applet based, though its not specified sometimes (Or for say, a program working on a machine with MySQL installed). From what I heard you can do it though PHP by filling in a HTML form, but to my understanding that the program would have to be an applet once again. I need to upload data from an adress book to a server, so that it can be retrieved from anywhere with an internet connection. The problem is that the ways I have explored do not seem possible from a non-java applet. The only other way is to FTP the save file back and forth, but that would cause problems behind firewalls and there are security implications.
Once again, the problem is connecting to a remote server from a Java program running on a computer (Non-Applet) through the internet, connecting to a MySQL database and changing data within the MySQL database.
How do I fix my java script?
So my Java thing isn’t working.
When I try to play a game it starts loading but it never goes anywhere.
Here is a screenshot: http://tinypic.com/view.php?pic=iztjic&s=5
Then is stops and it says something is wrong with it and this comes up:
Java Plug-in 1.6.0_13
Using JRE version 1.6.0_13 Java HotSpot(TM) Client VM
User home directory = C:Documents and SettingsOwner
—————————————————-
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to
—————————————————-
load: class AppletGui not found.
java.lang.ClassNotFoundException: AppletGui
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://nintendo8.com/AppletGui.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
… 7 more
Exception: java.lang.ClassNotFoundException: AppletGui
What do I do to fix this?
How can I make an installer for my website using PHP and a Java applet?
I have a program that I wrote and I want people to download it from my site. So that people don’t steal the software, I want to have a page (lets call it download.php) where they first need to enter their username and registration code. PHP checks if these items match in a database, then refreshes download.php, this time with an applet. That part is easy.
The hard part is making an applet that will install it on their machine. I’ll sign the applet and everything, so that the files can download from the server into Program Files/My Program, but then the question is how to make this program show up in Add or Remove Programs. Obviously I could make a setup.exe file that they could download instead of using the applet, but then there would be no security because they could just reuse and distribute setup.exe. Is there a registry key or something to actually “install” a program on Windows without just putting the files there? How do installers like InstallShield Wizard do it?
Thanks a lot
