Unidentified subject!
I use jdk1.1 and I would like to print ; it sounds that it is impossible without Motif, especially because the system is unable to show a print dialog. Is my assumption correct ? Is there a solution without Motif ? Thanks for answers. Pascal Coube -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
need advice on selling applet
Hello, I am an amateur java programmer, but now an enterprise is interested in some code I wrote. Being totally inexperienced in such matters I hope to find some advice about the basics of commercial java code. The following questions in particular seem important to me. I would very much appreciate any answers and references. Thank you. obfuscating: I consider obfuscating the *.jar file mainly to reduce file size. Searching the web I found one free obfuscator inspiring confidence namely RetroGuard by RetroLogic. It says it is free (lesser GPL) even for commercial use. Although everything looks fine I am a bit suspicious about that. Which obfuscator (free if possible) would you suggest? Is there a risk that they modify your code in an undesired way, like inserting any time based behavior? trial version: Since I have signed no contract yet but need to demonstrate the applet I implemented a simple date check in the main class that compares the current instance of Calendar with a Calendar constant time stamp and refuses execution when current time is later than that time stamp. Is that the usual way? It should be easy to circumvent even when the code is obfuscated. On the other hand, since they buy java code from an amateur they probably do not have the know how. price: The applet they want is based on a versatile tool I wrote and naturally only exploits a small fraction of the library's features. Now somebody told me I should estimate the number of hours a professional would have needed to write the applet in order to determine a reasonable price. But that is difficult: I spent quite a bit of time on the tool itself by now, but when they asked me to write this special purpose applet it took only slight adjustments and some configuring of the tool to do it. license: They only need this one special purpose applet right now. But my code is versatile and even though I do not bundle all classes but only those necessary for this one applet, it is possible by looking at the XML file that configures the applet to use the *.jar I deliver for other purposes. I may even need to tell them how to configure everything. Can I still restrict usage to, say, this one web page? Or should I instead license the entire tool right away? I can certainly reserve the right to use the code elsewhere and possibly sell further licenses of the same code? Knowing that this mailing list may not be the right place for this topic I apologize for the long posting. It is just that I badly need some professional advice and such is hard to find on the news groups. Thus thanks again for answers and/or references. Regards, Urs Schreiber -- [EMAIL PROTECTED] http://www.uni-essen.de/~hnr00s -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: System.out oddity
Hi Riyad,
Thanks for the suggestion, this does fix the jit but it does not fix the problem
that I am getting.
I assume that something has gone wrong with my system as the same problem occurs
using pre1 and after reinstalling pre2.
The only thing I pin anything on is that upgraded my machine last week and had to
upgrade to XFree3.3.4 to use a AGP card.
Thet Xlibs are the only libs that have changed in the last 3 months.
hmm.
Is this a bug or should I update to 3.3.5 ?
John
Riyad Kalla wrote:
> You need to fix the permissions on the libsunjit.so file in your
> jdk1.2/jre/lib/i386 directory. Use chmod 755 *
>
> and you also might need to do that with your fonts as well (if you are getting
> font warning messages)
>
> -Riyad
>
> John Reynolds wrote:
>
> > Hi all,
> >
> > I suddenly started to get the following when trying to compile files.
> >
> > [johnr@medoc ~]$ java -green -version
> > Warning: JIT compiler "sunwjit" not found. Will use interpreter.
> > java version "1.2"
> > Classic VM (build Linux_JDK_1.2_pre-release-v2, green threads, nojit)
> > [johnr@medoc ~]$ cd /usr/src/ApacheJServ-1.0/example/
> > [johnr@medoc example]$ javac -green MRTG_Interface_Cfg.java
> > Warning: JIT compiler "sunwjit" not found. Will use interpreter.
> > MRTG_Interface_Cfg.java:32: No variable out defined in class System.
> > System.out.println("hello");
> > ^
> >
> > Note, that class files that I had compiled error are running ok on the
> > command-line.
> >
> > Any ideas ?
> >
> > John
> >
> > --
> > To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
>
> --
> [ Riyad Kalla ]
> [ University of Arizona ]
> [ CS Major]
--
==
"There are no kernel hackers in Ireland. They spend all their time in the pub"
Alan Cox
==
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
text will not print in an applet
Using jdk1.2 pre_v2
I have a simple applet
import java.awt.*;
import java.applet.Applet;
import java.awt.event.*;
public class FirstEvent extends Applet
implements AdjustmentListener {
private Scrollbar slider;
private int sliderValue = 0;
public void init() {
slider = new Scrollbar(Scrollbar.HORIZONTAL ,0, 1, 0, 100);
add(slider);
slider.addAdjustmentListener(this);
}
public void paint(Graphics g) {
g.drawString("Current value is " + sliderValue, 100,100);
}
public void adjustmentValueChanged(AdjustmentEvent e) {
sliderValue = slider.getValue();
repaint();
}
}
and here for the record is the html file.
First Event applet
When I run this applet, I get some messages about missing dingbat fonts, but
the applet still displays and runs without any problems.
I went to the bug page and downloaded and installed the URW fonts, Now when
I run the applet, the messages about dingbat fonts have disappeared, but the
applet will not display text at all.
Any ideas ?
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: OT: Mailing list control
The list was modified a couple of weeks ago to allow subscribers on the digest list to post to the main list. Not sure about the nature of my reaction though. Did I grow horns and threaten your firstborn? Cheers, Karl Armen Yampolsky <[EMAIL PROTECTED]> writes: > I also had difficulty at one point with another aspect of the list -- none of my > posts would make it through. I had a correspondence with a fellow named Karl Asha in > which we finally figured out that it was because I was subscribed to the digest > rather than the full list, but still it surprised me that not only was blocking > digest subscribers' posts a policy (is that the only option?), but that this policy > seemed to have been instituted out of the blue, with no notices sent or posted on the > web site. The nature of Mr Asha's reactions to my suggestions led me to believe that > he's probably the wrong person to turn to when it comes to requesting modifications > to the mechanics of this list. I wonder who the real administrator is? > > -Armen > > > > Thomas M. Sasala wrote: > > With some mailing lists, you have to confirm before > > you actually start getting mail. I don't know why anyone would > > not want positive confirmation. > > > > -T > > > > Nathan Meyers wrote: > > > > > > Charles Forsythe wrote: > > > > > > > > Hey, is it possible to setup "read-only" participants? You know, so they > > > > continue to get the wisdom of Java-Linux mailing list, but can't send anything > > > > to the list? > > > > > > Mr. Reitwiesner's request is not unreasonable. He didn't ask to get on > > > this list... it was someone else's idea of a joke or revenge. The topic > > > of using better mailing-list software has come up before, but it never > > > seems to get anywhere. Such software is freely available. > > > > > > Nathan > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: need advice on selling applet
[EMAIL PROTECTED] wrote: > > trial version: > Since I have signed no contract yet but need to demonstrate the applet > I implemented a simple date check in the main class that compares > the current instance of Calendar with a Calendar constant time stamp > and refuses execution when current time is later than that time stamp. > Is that the usual way? It should be easy to circumvent even when > the code is obfuscated. On the other hand, since they buy java code > from an amateur they probably do not have the know how. Suggestions 1) Remove a critical feature such as a SAVE button. Don't compile the class, and make sure software Dynamic `Class.for( ... )'. 2) Built an encrpyted class loader that works with a license key. Use trial license key to load classes, provide full license key later to load the rest of the classes and thus provide full functionality. The license key can be supplied to the applet using html applet parameters. Of course that is ok if you want closed-source. Peter P -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Best approach to new event and its handling
Hi, What's the best approach to introduce new events and their handling without touching any of Event class, EventQueue class and EventDispachingThread class? I'd like to extend Java events set with new type of events without any change to Event model framework. What's the best approach to this? Thanks in advance, - Yuwin Get your own FREE, personal Netscape WebMail account today at http://webmail.netscape.com. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Memory problems
I'm running JDK 1.1.7v3 on an i386 running RedHat 5.2. The JDK has a nasty
habit of bailing out with an out of memory error before my machine has
actualy run out of memory (yes, I used the mx option, also I have 192m of
ram with 100m swap space). I put together the following test program which
demonstrates the problem (on my i386 anyways, it works just fine on my
Solaris Sparc).
public class memHog {
public static void main(String args[]) {
int outerDimension = 64;
int innerX = 1024;
int innerY = 1024;
System.out.println("Allocating " + 1024*1024*64*4 + " bytes.");
int bigAssArr[][][] = new int[outerDimension][][];
for (int i=0; i
swing netscape linux
hi all, is it possible to load swing applets with netscape in a linux box? TIA --Yohans ~ Yohans Mendoza Unix Administrator [EMAIL PROTECTED]Sirius Images Inc. http://www2.utep.edu/~yohanshttp://www.sirius-images.net ~ -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Memory problems
Benjamin Edelman wrote:
>
> I'm running JDK 1.1.7v3 on an i386 running RedHat 5.2. The JDK has a nasty
> habit of bailing out with an out of memory error before my machine has
> actualy run out of memory
Some things to try:
1) Make sure you're not out of memory due to other big processes
running.
2) Check the contents of /proc/meminfo to make sure you have all the
memory and swap you think you do (you do boot with the linux "mem="
option, right?).
3) Type "ulimit -a" into bash to see if you've got a "max memory size"
or "data seg size" other than unlimited.
Nathan
> (yes, I used the mx option, also I have 192m of
> ram with 100m swap space). I put together the following test program which
> demonstrates the problem (on my i386 anyways, it works just fine on my
> Solaris Sparc).
>
> public class memHog {
>
> public static void main(String args[]) {
> int outerDimension = 64;
> int innerX = 1024;
> int innerY = 1024;
>
> System.out.println("Allocating " + 1024*1024*64*4 + " bytes.");
> int bigAssArr[][][] = new int[outerDimension][][];
> for (int i=0; i bigAssArr[i] = new int[innerX][];
> for (int j=0; j bigAssArr[i][j] = new int[innerY];
> for (int k=0; k bigAssArr[i][j][k] = k;
> }
> }
> System.out.println(1024*1024*i*4 + " bytes allocated...");
> }
> System.out.println("DONE!");
> }
> }
>
> a sample run:
>
> $ java -mx200m memHog
> Allocating 134217728 bytes.
> 0 bytes allocated...
> 4194304 bytes allocated...
> 8388608 bytes allocated...
> 12582912 bytes allocated...
> 16777216 bytes allocated...
> 20971520 bytes allocated...
> 25165824 bytes allocated...
> Before GC. Free=187032. Total=33660920.
>
> After GC. Free=187032. Total=33660920.
>
> DONE!
>
> The amount of memory used does not have an obvious correlation to the mx
> value(at least not obvious to me)
>
> any sugestions??
>
> thanks,
> -Ben Edelman
>
> --
> To UNSUBSCRIBE, email to [EMAIL PROTECTED]
> with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
