Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with javac since security update



Glen

You seem very anxious to condemn my suggestion.

A little experimentation shows that the command "javac -encoding ProgramFile.java" produces the same output that Brandon is getting.

Let's enter the Terminal command: alias javac "/usr/bin/javac -encoding"

Now, entering "javac ProgramFile.java" gives EXACTLY the same symptoms that Brandon is getting.

So, if there's a spurious alias somewhere, Brandon's problem is explained; hence my suggestion to check out the shell startup files and Terminal settings.

Bob
--
On 7 Apr 2005, at 23:11, Glen Fisher wrote:

Brandon P. Becker wrote:
| A security patch was recently installed to fix a problem with Java
| applets, I believe.
|
| Since that patch, the behavior of Java has changed dramatically and to
| the point of no longer being usable.


Bob Lang wrote:
| I wonder if this might be a Terminal problem?


Unlikely. Terminal would have to be selectively discarding user input to
explain


|         1.  javac abc.java no longer initiates a compile of abc.java. 
| Instead a multi line diag is issued starting with:
|         javac: no source files
|   Usage: javac <options> <source files>
|         where possible options include:


where the "javac" command appears to ignore its first argument. Terminal is,
as its name says, merely a *terminal*. It simply relays text back and forth
to the shell and programs started from the shell. For Terminal to be able to
cause this symptom, it would have to understand what's being typed.


Nor would weird Terminal settings explain

| Changing the compile line to
|         javac -verbose abc.java
| will initiate the compile, but only if abc is self-contained, the
| compiler fails to find class files in the directory where the file
| abc.java = the directory where the compile was initiated.   An example
| is appended to this email.


Scrambled *shell* settings might be able to do that, since the shell manages
environment variables, which *do* affect Java. (But even they wouldn't cause
"javac" to ignore arguments.)


The symptoms suggest a broken Java installation.


I think my first guess would be to delete the most recent Java-update receipt, then reinstall that update.

Glen Fisher

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Java-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/java-dev/ email@hidden


This email sent to email@hidden


_______________________________________________ Do not post admin requests to the list. They will be ignored. Java-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/java-dev/email@hidden

This email sent to email@hidden
References: 
 >Re: Problems with javac since security update (From: Glen Fisher <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.