Re: JAR! . . .What is it good for?. . .Absolutely nothing :-)



Hi Oliver

Thanks for the reply.

"Oliver Wong" <owong@xxxxxxxxxxxxxx> wrote in message
news:u9egh.5491$qH2.24365@xxxxxxxxxxxxxxxxxxxxxxx
Java 1.6 (AKA Java 6, Sun gives a lot of confusing aliases to their
version numbering system) just got officially released a few days ago (it
was previously in beta). You can download the JVM from
http://java.sun.com/javase/downloads/index.jsp

I downloaded that version and it certainly progressed things a bit but I'm
still floundering. I'm gonna be a bit contemptuous here and cut and paste a
request I sent to another bloke that's helping me, but if you could have a
quick glance over the versions at least (if nothing else) and let me know if
anything stands out (like the Object tag is dodgy) I'd really appreciate it!

Regards Richard Maher

I'm dying here!

I know you've held my hand and spoon fed me and if I can't tie my own shoe
laces by now then there's no help for me, but *please* look at what I have
done and tell me what I'm doing wrong!

This is Windows 2000 5.00.2195 SP 4 and iexplore 6.0.2800.1106 SUN JDK 1.6.0
(Latest Not beta)

Javac EmpClient.java
Javac EmpApplet.java

/* Maybe I should use the -g switch for debug info as I no longer seem to be
able to "stop at EmpApplet:1" in the Appletviewer anymore and the class and
archive files seem smaller. */

Jar -cf emp.jar EmpApplet.class EmpClient.class EmpClient$Message.class

Jar -tf emp.jar

// Looks good 3115 bytes for emp.jar

FTP to VMS box 1.2.3.6 type=image

$set file/attr=(rfm:udf) emp.jar

*NOW* If I use the <Applet> tag I get the classnotfound error and the reason
is "socket error unexpected end of file" but I have sent 3115 bytes with
your VMS COPY.

So I give up on the applet tag and move to the <OBJECT> tag but I can't find
a useful syntax diagram on the web and certainly not one with your
"verbs/attributes".

In your version you say "<object type=" but I can only find "codetype" in
the html specs and name="" and id="" simply do not exist and are replaced
with "param=".

This is what I'm left with: -

<html>
<head>
<script type="text/javascript">
function empchanged (txt)
{
var selectRef = document.forms[0]["users"];
var optsRef = selectRef.options;
while (optsRef.length > 0)
{
selectRef.remove(optsRef[0]);
}
var val = txt.value;
if (val.length > 0)
{
document.EmpApplet.initEmployee (txt.value);

for (;;)
{
var emp = document.EmpApplet.nextEmployee ();
if (emp == null)
break;
selectRef.add (new Option (emp,emp) , null);
}
}
}
function setemp (sel)
{
document.forms[0]["employee"].value = sel.options[sel.selectedIndex].value;
}
</script>
</head>
<body>
<form>

<object
width= "0" height= "0" >
<param name="type" value="application/x-java-applet;version=1.6.0">
<param name="archive" value="emp.jar">
<param name="code" value="EmpApplet.class">
<param name="codebase" value="http://1.2.3.6/";>
<param name="mayscript" value="yes">
<param name="scriptable" value="true">
<param name="name" value="EmpApplet">
<param name="HOST" value="1.2.3.6">
<param name="PORT" value="3333">
</object>


<input type="text" name="employee" onchange="empchanged (this);"
onkeyup="empchanged (this);">
<select name="users" onchange="setemp(this);"></select>
</form>
</body>
</html>


This code works with the AppletViewer and connects to my VMS name-lookup
server (Which also proves that your mickey-mouse applet uploader is doing
it's job) but won't work with the html as I get (depending on which html
page I try) document.EmpApplet is null or not an object OR Object does not
support this property or method AT
document.EmpApplet.initEmployee(txt.value)

I *have* copied the latest and greatest Frames example and I get "null is
null or not an object" at test.html aka "parent.frames.appletframe.document
is null or not an object"

I come to you cap in hand in all humility knowing full well that I am not
paying you for this and you have much work to do but *FOR PETE'S SAKE* if
this is how hard it is to get a "simple" applet working then no wonder
everyone isn't doing it :-(

Please, please, please no frames, missionary position only code that I can
compile and run on W2K. There is every possibility that I am an idiot and
everyone else can do this, but on the other hand I submit to you that your
code will simply not *compile* and run on W2K.

Who cares? You might say; we are *nix biggots and don't care about that blah
blah blah, but have a heart will ya? I did give the casual observer a DCL
command file that could be just (AT)ed. I'm not asking for that but just
change your /test/ to a remote VMS connection or tell me "You're a dickhead
and everyone knows that your dickie$path environmental variable must be
pointing to /test/ for frame.html to pick up test and test1"



"Oliver Wong" <owong@xxxxxxxxxxxxxx> wrote in message
news:u9egh.5491$qH2.24365@xxxxxxxxxxxxxxxxxxxxxxx

"Richard Maher" <maher_rj@xxxxxxxxxxxxxxxxxx> wrote in message
news:elrds3$3b4$1@xxxxxxxxxxxxxxxxxxxxxxxxx

I am now getting the, equally lovely, "Incompatible magic value" error
:-(
I'm guessing that it's because I'm running the latest and greatest 1.6
JDK
and the JVM on W2K won't work with that (I have run windows update; is
there
a seperate JVM download site?) Anyway I have a 1.4.2 JDK on a Windows98
box
that I'll use to build the classes and the Jar and see if that makes a
difference.

Java 1.6 (AKA Java 6, Sun gives a lot of confusing aliases to their
version numbering system) just got officially released a few days ago (it
was previously in beta). You can download the JVM from
http://java.sun.com/javase/downloads/index.jsp

- Oliver




.



Relevant Pages

  • Re: What JVMs on which OSs ?
    ... The most important part of 'Java is almost universal' is how ... Some of the reasons I think JVM is universal: ... IBM TP's) I've tried to show applet demos had JVM, ... a small download and searching w/b instanteneous. ...
    (comp.lang.java.programmer)
  • Re: Beta anti spyware
    ... > including clicking on and reading every single link to additional ... term we will get to later -given that the very page where you download from ... "This is pre-release (beta) software distributed for feedback and testing ... clearly in bold print on the download page itself titled "Beta Support ...
    (microsoft.public.security)
  • Re: Outlook2010 64-Bit does not Sync
    ... In my younger days I used to hop on every beta that came along, but in my ripe old age I tend to stick with what's working for me. ... I checked out the OL2010 site and it claimed to offer both versions for DL after registering, but I didn't bother to register to get to actual download links. ... Windows Mobile" is one of the issues to be resolved. ... Run Microsoft Outlook and>>> set ...
    (microsoft.public.pocketpc.activesync)
  • Re: RE-RE-REinstalling Office 2007 Office.
    ... Office Professional Plus Beta and it worked just fine. ... I have tried going to the download website 2 times now asking to get the ... Beta Office version I can install and "check it out". ... Tried to reinstall Beta Office 2007 Beta. ...
    (microsoft.public.officeupdate)
  • RE: 2007 beta key !!!!!!!!!!!
    ... The download page clearly stated that beta versions should never be used in a production environment and if you read the End User License Agreement that you had to accept when you installed Beta 2, you'll see that there is an explicit clause prohibiting use of it in a production environment: ... You may install and use one copy of the software on your premises to test how it runs with your programs. ... That is a lot cheaper than sitting around till December 1 when you can download a trial version of Office 2007. ...
    (microsoft.public.office.setup)