From sadam at startvox.hu Mon Jul 2 01:22:54 2007 From: sadam at startvox.hu (=?ISO-8859-1?Q?Siska_=C1d=E1m?=) Date: Mon Jul 2 01:23:06 2007 Subject: [java-dev] [Fwd: A strange error...] In-Reply-To: <1183343838.2DB090AA@dl11.dngr.org> References: <4686AE68.5060707@startvox.hu> <1183343838.2DB090AA@dl11.dngr.org> Message-ID: <4688A7CE.50403@startvox.hu> Maybe yes. Actually, I'm setting up the default folder in my object's constructor, with the following code: try { String newPath = MaxSystem.getDefaultPath ( ); newPath = ( newPath.charAt ( newPath.length ( ) - 1 ) == '/' ? newPath.substring ( 0, newPath.length ( ) - 1 ) : newPath ); System.setProperty ( "user.dir", newPath ); } catch ( SecurityException e ) { error ( "Couldn't modify default path." ); } I also tried the way you suggested calling this.getParentPatcher ( ).getPath ( ), but I got a null pointer exception. Can it happen that the getDefaultPath is not set at object creation time? Thank you, Adam topher lafata wrote: > Sounds like getDefaultPath may not be set up yet when you are calling it. > From mattijs at smadsteck.nl Mon Jul 2 08:21:02 2007 From: mattijs at smadsteck.nl (Mattijs Kneppers) Date: Mon Jul 2 08:21:03 2007 Subject: [java-dev] Re: java doesn't work. error: could not find jvm In-Reply-To: <1abb4.46890977@www.cycling74.com> Message-ID: <1abbe.468909cd@www.cycling74.com> Moved this topic from the archives to the Java forum. Please reply to the Java list. Mattijs -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From mattijs at smadsteck.nl Mon Jul 2 08:24:54 2007 From: mattijs at smadsteck.nl (Mattijs Kneppers) Date: Mon Jul 2 08:24:57 2007 Subject: [java-dev] Re: jitter java support error: could not find jvm In-Reply-To: <1abbb.46890358@www.cycling74.com> Message-ID: <1abc1.46890ab6@www.cycling74.com> Moved this thread to the Java forum. Please reply to the Java list. -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From secondbox at gmx.net Mon Jul 2 16:16:08 2007 From: secondbox at gmx.net (secco) Date: Mon Jul 2 16:16:10 2007 Subject: [java-dev] java doesn't work. error: could not find jvm Message-ID: <1abe3.46897928@www.cycling74.com> hi all, I can't get jitter java support working on some machines. When I try to start jitter (as a standalone with the runtime) the message "error: could not find jvm" appears. Everything else works fine, just no java. The strange thing is, that this happens only on a few machines and I can't find the difference between the working ones and the non working. All Machines have this in common: Same Hardware Windows XP SP2 Sun Java 6u1 Jitter 1.6.3 Max 4.6 One difference is, that the nonworking ones first didn't have SP2. I installed it after the Java installer told me that it is required. I first tried without, then deinstalled Java, installed SP2, installed Java again. Does anybody have an idea? thanks secco From sadam at startvox.hu Tue Jul 3 04:28:25 2007 From: sadam at startvox.hu (=?ISO-8859-1?Q?Siska_=C1d=E1m?=) Date: Tue Jul 3 04:28:38 2007 Subject: [Fwd: Re: [java-dev] [Fwd: A strange error...]] Message-ID: <468A24C9.9020905@startvox.hu> Yes. I have a test patch that is never being modified, it just has the mxj with a reference to the class I'm writing. I quit every time Max before rebuilding the jar archive that has the class I'm developing. I'm using the normal Max, not Max Runtime. My version is 4.6.3. I build the jar with Eclipse 3.2.2. Thank you, Adam ________________ Siska ?d?m +36 (70) 207-63-85 http://apocalypse.rulez.org/~sadam topher lafata wrote: > Was your patcher saved when you tried getParentPatcher method? > From topher at topher.com Tue Jul 3 10:31:55 2007 From: topher at topher.com (topher lafata) Date: Tue Jul 3 10:31:34 2007 Subject: [Fwd: Re: [java-dev] [Fwd: A strange error...]] In-Reply-To: <468A24C9.9020905@startvox.hu> References: <468A24C9.9020905@startvox.hu> Message-ID: <009FB0CB-85CA-4097-9EAC-AEF5EFBAB058@topher.com> Hey Siska, I am not sure what is going on then. It works for me over here. One other last gasp alternative is for you to name your settings file something unique and use MaxSystem.locate file. ciao t On Jul 3, 2007, at 03:28 AM, Siska ?d?m wrote: > Yes. I have a test patch that is never being modified, it just has > the mxj with a reference to the class I'm writing. I quit every > time Max before rebuilding the jar archive that has the class I'm > developing. I'm using the normal Max, not Max Runtime. My version > is 4.6.3. I build the jar with Eclipse 3.2.2. > > Thank you, > Adam > > ________________ > Siska ?d?m > +36 (70) 207-63-85 > http://apocalypse.rulez.org/~sadam > > topher lafata wrote: > > Was your patcher saved when you tried getParentPatcher method? > > > > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev From jbmaxwell at btinternet.com Fri Jul 6 02:39:14 2007 From: jbmaxwell at btinternet.com (jbmaxwell) Date: Fri Jul 6 02:39:15 2007 Subject: [java-dev] JXTA in mxj? Message-ID: <1acfb.468dffb1@www.cycling74.com> Has anybody done any work with JXTA in mxj? https://jxta.dev.java.net/ I'm fumbling around with an idea of peer-to-peer patch, and was looking for an existing platform to simplify the implementation. I Googled my way to JXTA - anybody know anything about this, or had any experience with it? It seems like some pretty cool things could be done with it, or something similar... J. From sadam at startvox.hu Mon Jul 9 08:39:26 2007 From: sadam at startvox.hu (=?ISO-8859-1?Q?Siska_=C1d=E1m?=) Date: Mon Jul 9 08:39:36 2007 Subject: [Fwd: Re: [java-dev] [Fwd: A strange error...]] In-Reply-To: <009FB0CB-85CA-4097-9EAC-AEF5EFBAB058@topher.com> References: <468A24C9.9020905@startvox.hu> <009FB0CB-85CA-4097-9EAC-AEF5EFBAB058@topher.com> Message-ID: <4692489E.3080400@startvox.hu> Hi, sorry, I hadn't had internet for a few days. My solution was to modify this code: File settings = new File ( Constants.SETTINGS_FILE ); to this new one: File settings = new File ( System.getProperty ( "user.dir" ), Constants.SETTINGS_FILE ); and now everything works. The strange is, that the documentation page for java.io.File says that the first constructor I used resolves the given relative path against the current user directory, which can be accessed with System.getProperty ( "user.dir" ). This means that formally the two constructors should give the same result. So, maybe this is a JVM bug... Bye, Adam ________________ Siska ?d?m +36 (70) 207-63-85 http://apocalypse.rulez.org/~sadam topher lafata wrote: > Hey Siska, > I am not sure what is going on then. It works for me over here. > > One other last gasp alternative is for you to name > your settings file something unique and use MaxSystem.locate file. > > ciao > t > > On Jul 3, 2007, at 03:28 AM, Siska ?d?m wrote: > >> Yes. I have a test patch that is never being modified, it just has >> the mxj with a reference to the class I'm writing. I quit every time >> Max before rebuilding the jar archive that has the class I'm >> developing. I'm using the normal Max, not Max Runtime. My version is >> 4.6.3. I build the jar with Eclipse 3.2.2. >> >> Thank you, >> Adam >> >> ________________ >> Siska ?d?m >> +36 (70) 207-63-85 >> http://apocalypse.rulez.org/~sadam >> >> topher lafata wrote: >> > Was your patcher saved when you tried getParentPatcher method? >> > >> >> _______________________________________________ >> java-dev mailing list >> java-dev@cycling74.com >> http://www.cycling74.com/mailman/listinfo/java-dev > > From nick at cassiel.com Mon Jul 9 12:23:41 2007 From: nick at cassiel.com (Nick Rothwell) Date: Mon Jul 9 12:24:02 2007 Subject: [Fwd: Re: [java-dev] [Fwd: A strange error...]] In-Reply-To: <4692489E.3080400@startvox.hu> References: <468A24C9.9020905@startvox.hu> <009FB0CB-85CA-4097-9EAC-AEF5EFBAB058@topher.com> <4692489E.3080400@startvox.hu> Message-ID: <5AE40E41-D95F-4DF7-86A1-8D7882863BD0@cassiel.com> On 9 Jul 2007, at 15:39, Siska ?d?m wrote: > The strange is, that the documentation page for java.io.File says > that the first constructor I used resolves the given relative path > against the current user directory, which can be accessed with > System.getProperty ( "user.dir" ). That's not how I read it (albeit briefly): in the two-argument form, the second argument is forced to be relative in a system-dependent manner (whatever that may mean). What does your SETTINGS_FILE string look like? -- N. Nick Rothwell / Cassiel.com Limited www.cassiel.com www.myspace.com/cassieldotcom www.loadbang.net From sadam at startvox.hu Mon Jul 9 12:28:30 2007 From: sadam at startvox.hu (=?ISO-8859-1?Q?Siska_=C1d=E1m?=) Date: Mon Jul 9 12:28:40 2007 Subject: [Fwd: Re: [java-dev] [Fwd: A strange error...]] In-Reply-To: <5AE40E41-D95F-4DF7-86A1-8D7882863BD0@cassiel.com> References: <468A24C9.9020905@startvox.hu> <009FB0CB-85CA-4097-9EAC-AEF5EFBAB058@topher.com> <4692489E.3080400@startvox.hu> <5AE40E41-D95F-4DF7-86A1-8D7882863BD0@cassiel.com> Message-ID: <46927E4E.3000407@startvox.hu> public static final String SETTINGS_FILE = "settings.xml"; Thanks, Adam Nick Rothwell wrote: > > On 9 Jul 2007, at 15:39, Siska ?d?m wrote: > >> The strange is, that the documentation page for java.io.File says >> that the first constructor I used resolves the given relative path >> against the current user directory, which can be accessed with >> System.getProperty ( "user.dir" ). > > That's not how I read it (albeit briefly): in the two-argument form, > the second argument is forced to be relative in a system-dependent > manner (whatever that may mean). What does your SETTINGS_FILE string > look like? > > -- N. > > > Nick Rothwell / Cassiel.com Limited > www.cassiel.com > www.myspace.com/cassieldotcom > www.loadbang.net > > > > > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > From mattijs at smadsteck.nl Sun Jul 15 13:02:40 2007 From: mattijs at smadsteck.nl (Mattijs Kneppers) Date: Sun Jul 15 13:02:41 2007 Subject: [java-dev] Re: Whoops, eclipse deleted my mxj java classes In-Reply-To: <1af4c.4699edba@www.cycling74.com> Message-ID: <1af6d.469a6f4f@www.cycling74.com> Moved this topic to the java forum, please reply to the Java list -- SmadSteck - http://www.smadsteck.nl Hard- and software for interactive audiovisual sampling From jbmaxwell at btinternet.com Tue Jul 17 03:43:36 2007 From: jbmaxwell at btinternet.com (jbmaxwell) Date: Tue Jul 17 03:43:37 2007 Subject: [java-dev] memory running wild Message-ID: <1afe8.469c8f47@www.cycling74.com> I seem to have created a memory leak of some kind. I have an object, say "Link", that makes associations between two instances of another type of objects, say "Thing". Basically, I'm testing for similarity between Things, and using Links to record the similarities found. The Link has a constructor which takes two Things, and some analysis data indicating the ways in which they are similar. What I'm curious about is whether such a constructor would make deep copies of the two Thing objects, or just store references? The way my memory usage is spinning out of control, I'm guessing that actual copies are being made. Is there any way to check this? Is there any way to avoid this? Thanks for any thoughts. J. From jbmaxwell at btinternet.com Tue Jul 17 07:46:33 2007 From: jbmaxwell at btinternet.com (jbmaxwell) Date: Tue Jul 17 07:46:34 2007 Subject: [java-dev] Re: memory running wild In-Reply-To: <1afe8.469c8f47@www.cycling74.com> Message-ID: <1aff7.469cc838@www.cycling74.com> As an example, I've just been testing a run of the code in which listA has 292 members, and listB has 203. A complete run of the test for similarity will create 59276 "Link" objects. The total memory used by Max before the run (shown in "top") is about 64MB, and after the run it's about 100MB - so the creation of Link objects presumably used up about 34MB. (If I comment out the line that instantiates the Link objects, the memory stays at 64MB.) Doesn't that seem high? The Link object contains two double arrays (not particularly long ones) and the 2 "Thing" object references mentioned above. But these numbers would suggest about 600 bytes per object. Isn't that a bit much? If that seems like a reasonable size, then I'll just have to figure out a more efficient way of mapping out the similarities I'm after... J. From owen at owengreen.net Tue Jul 17 08:06:17 2007 From: owen at owengreen.net (Owen Green) Date: Tue Jul 17 08:06:23 2007 Subject: [java-dev] Re: memory running wild In-Reply-To: <1aff7.469cc838@www.cycling74.com> References: <1aff7.469cc838@www.cycling74.com> Message-ID: <469CCCD9.90200@owengreen.net> Hi James, Can you post the code for the Link class? -- Owen jbmaxwell wrote: > As an example, I've just been testing a run of the code in which > listA has 292 members, and listB has 203. A complete run of the test > for similarity will create 59276 "Link" objects. The total memory > used by Max before the run (shown in "top") is about 64MB, and after > the run it's about 100MB - so the creation of Link objects presumably > used up about 34MB. (If I comment out the line that instantiates the > Link objects, the memory stays at 64MB.) > > Doesn't that seem high? > > The Link object contains two double arrays (not particularly long > ones) and the 2 "Thing" object references mentioned above. But these > numbers would suggest about 600 bytes per object. Isn't that a bit > much? If that seems like a reasonable size, then I'll just have to > figure out a more efficient way of mapping out the similarities I'm > after... > > J. _______________________________________________ java-dev mailing > list java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > From jbmaxwell at btinternet.com Tue Jul 17 08:30:36 2007 From: jbmaxwell at btinternet.com (jbmaxwell) Date: Tue Jul 17 08:30:37 2007 Subject: [java-dev] Re: memory running wild In-Reply-To: <1afe8.469c8f47@www.cycling74.com> Message-ID: <1affe.469cd28a@www.cycling74.com> Okay, I've attached the source for the "Link" object... which is actually an "Allusion" object. I did notice that there is another ArrayList of object references I had forgotten about (gulp), and a HashMap... okay, that's a bit embarrassing... (oh, and I load some short home movies, a couple of 8-channel aif files, and... just kidding.) Anyway, I commented out that code and cut about 9MB off the run - not that I can do that and still have the program work, but I though I'd at least test it. Taking this into consideration, do you think the memory usage is about what would be expected? That is, around 27MB for the creation of the 59276 objects? (That should be about 477 bytes per instance.) Still seems high, to me. J. -------------- next part -------------- A non-text attachment was scrubbed... Name: Allusion.java.zip Type: application/zip Size: 1573 bytes Desc: not available Url : http://www.cycling74.com/pipermail/java-dev/attachments/20070717/12ee74dd/Allusion.java.zip From sadam at startvox.hu Tue Jul 17 08:40:29 2007 From: sadam at startvox.hu (=?ISO-8859-15?Q?Siska_=C1d=E1m?=) Date: Tue Jul 17 08:40:41 2007 Subject: [java-dev] memory running wild In-Reply-To: <1afe8.469c8f47@www.cycling74.com> References: <1afe8.469c8f47@www.cycling74.com> Message-ID: <469CD4DD.2060209@startvox.hu> Hello, Check these two links: http://java.sun.com/docs/books/jls/second_edition/html/typesValues.doc.html#18470 http://www.yoda.arachsys.com/java/passing.html In Java, a variable is something like pointers in C (except for primitive types). This means, that you'll never get "deep copies" of objects passed through the argument list of a function (except for primitive types). If you have a primitive type (int, float, boolean etc), you get it passed "by value", and if you have any other object, you get the variable (that is, the pointer to the object) passed "by value", not a copy of the object itself. (If you have a String, or any other immutable object, you'll get a variable that points to the same location in the internal string table of Java than the original string variable). Hope this helps, Adam ________________ Siska ?d?m +36 (70) 207-63-85 http://apocalypse.rulez.org/~sadam jbmaxwell wrote: > I seem to have created a memory leak of some kind. > > I have an object, say "Link", that makes associations between two instances of another type of objects, say "Thing". Basically, I'm testing for similarity between Things, and using Links to record the similarities found. > > The Link has a constructor which takes two Things, and some analysis data indicating the ways in which they are similar. What I'm curious about is whether such a constructor would make deep copies of the two Thing objects, or just store references? The way my memory usage is spinning out of control, I'm guessing that actual copies are being made. Is there any way to check this? Is there any way to avoid this? > > Thanks for any thoughts. > > J. > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > > From jbmaxwell at btinternet.com Tue Jul 17 08:49:59 2007 From: jbmaxwell at btinternet.com (jbmaxwell) Date: Tue Jul 17 08:50:01 2007 Subject: [java-dev] Re: memory running wild In-Reply-To: <1afe8.469c8f47@www.cycling74.com> Message-ID: <1b001.469cd716@www.cycling74.com> Cheers, Adam. Yeah, I didn't see how it could be copying the objects, but that was the only way I could imagine the memory getting so far out of control. On certain analysis jobs, the memory runs out to 500+ MB! I have a sinking feeling that I haven't done anything obviously wrong, except implement a really bloated design. There are ways around it, but they won't be as clean to work with at higher levels of the program, which is lame. Maybe Owen will see something else, but I think I'm going to be rewriting a bunch of old code tonight... J. From jbmaxwell at btinternet.com Wed Jul 18 13:26:31 2007 From: jbmaxwell at btinternet.com (jbmaxwell) Date: Wed Jul 18 13:26:33 2007 Subject: [java-dev] Re: memory running wild In-Reply-To: <1afe8.469c8f47@www.cycling74.com> Message-ID: <1b059.469e6967@www.cycling74.com> ...okay, found a way around it by rewriting some code... From owen at owengreen.net Wed Jul 18 14:19:28 2007 From: owen at owengreen.net (Owen Green) Date: Wed Jul 18 14:19:41 2007 Subject: [java-dev] Re: memory running wild In-Reply-To: <1b059.469e6967@www.cycling74.com> References: <1b059.469e6967@www.cycling74.com> Message-ID: <469E75D0.7060500@owengreen.net> Do tell - I'd been about to start picking the original apart to see what was going on. jbmaxwell wrote: > ...okay, found a way around it by rewriting some code... > > > > _______________________________________________ > java-dev mailing list > java-dev@cycling74.com > http://www.cycling74.com/mailman/listinfo/java-dev > From jbmaxwell at btinternet.com Wed Jul 18 15:37:31 2007 From: jbmaxwell at btinternet.com (jbmaxwell) Date: Wed Jul 18 15:37:32 2007 Subject: [java-dev] Re: Re: memory running wild In-Reply-To: <469E75D0.7060500@owengreen.net> Message-ID: <1b071.469e881a@www.cycling74.com> Quote: owen wrote on Wed, 18 July 2007 21:19 ---------------------------------------------------- > Do tell - I'd been about to start picking the original apart to see what > was going on. > > jbmaxwell wrote: > > ...okay, found a way around it by rewriting some code... > > > > > > > > > > ---------------------------------------------------- Oh, thanks! Well, I actually realized that with only a small redesign I could get rid of this class entirely, without losing any real functionality. The overall model is every-so-slightly less OOP, but not enough to miss. I messed around for several hours this morning trying to figure out how that other class could be eating so much memory, but I never figured it out. The new version I have basically pulls the functionality of the "Allusion" into the objects that the Allusion class was associating. I had to move the statistical data into these objects as well, but it's more convenient to have it there anyway, so no loss. Anyway, what I thought was a clever design was just bloated, I guess! If you do look at it, purely out of theoretical interest, and see anything really obvious, let me know. But please don't waste any of your time. cheers, J. From puuukeey at comcast.net Mon Jul 23 00:44:34 2007 From: puuukeey at comcast.net (Matthew Aidekman) Date: Mon Jul 23 00:44:36 2007 Subject: [java-dev] [sharing is ignorance] contextual menus Message-ID: <1b1ad.46a44e51@www.cycling74.com> is it so wrong that I feel I am one with the divine when I pull this crap off? (just let me soak in my ignorance. ) this hasn't been tested on other computers so watch out for crashes. one day I'll do a real version of it. four messages: bang: bring up contextual menu (if there are stored menu items) add (any arguments): similar to append in umenu. (appends menu items) clear: clears menu items dispose: gets rid of menu before time-out (3.1 sec) -matt -------------- next part -------------- A non-text attachment was scrubbed... Name: contextmenu001.class Type: application/octet-stream Size: 4331 bytes Desc: not available Url : http://www.cycling74.com/pipermail/java-dev/attachments/20070723/3b2dcfcb/contextmenu001.obj From puuukeey at comcast.net Mon Jul 23 00:54:42 2007 From: puuukeey at comcast.net (Matthew Aidekman) Date: Mon Jul 23 00:54:43 2007 Subject: [java-dev] Re: [sharing is ignorance] contextual menus In-Reply-To: <1b1ad.46a44e51@www.cycling74.com> Message-ID: <1b1af.46a450b1@www.cycling74.com> ps heres how to use it #P window setfont "Sans Serif" 14.; #P window linecount 1; #P comment 1131 195 65 196622 click me; #P window setfont "Sans Serif" 9.; #P newex 1183 92 97 196617 r fromcontextmenu; #P newex 1183 337 90 196617 send contextmenu; #P button 1169 175 15 0; #P message 1183 302 148 196617 face eyes ears nose mouth lips; #P newex 1183 115 56 196617 route face; #P newex 1183 140 62 196617 prepend set; #P message 1183 174 53 196617 ears; #P newex 882 97 97 196617 r fromcontextmenu; #P newex 530 232 63 196617 prepend add; #P newex 531 204 25 196617 iter; #P newex 532 169 54 196617 t b l clear; #P newex 439 449 97 196617 s fromcontextmenu; #P newex 439 403 62 196617 prepend set; #P newex 662 180 62 196617 prepend set; #P newex 491 137 51 196617 zl slice 1; #P newex 662 137 51 196617 zl slice 1; #P newex 491 82 75 196617 r contextmenu; #P newex 882 342 90 196617 send contextmenu; #P button 868 180 15 0; #P message 882 307 172 196617 moo cows swine ducks horses sheep; #P newex 882 120 55 196617 route moo; #P newex 882 145 62 196617 prepend set; #P message 882 179 53 196617 sheep; #P newex 439 339 64 196617 fromsymbol; #P newex 439 298 106 196617 mxj contextmenu001; #P window setfont "Sans Serif" 14.; #P comment 837 202 65 196622 click me; #P connect 9 0 11 0; #P connect 9 0 10 0; #P connect 4 0 3 0; #P connect 5 0 4 0; #P connect 7 0 6 0; #P connect 10 0 12 0; #P connect 13 0 14 0; #P connect 11 1 15 0; #P fasten 15 2 1 0 581 266 444 266; #P connect 15 1 16 0; #P connect 16 0 17 0; #P fasten 17 0 1 0 535 266 444 266; #P fasten 15 0 1 0 537 191 444 191; #P fasten 12 0 13 0 667 380 444 380; #P connect 18 0 5 0; #P connect 6 0 8 0; #P connect 1 0 2 0; #P connect 2 0 13 0; #P connect 22 0 24 0; #P connect 23 0 22 0; #P connect 20 0 19 0; #P connect 21 0 20 0; #P connect 25 0 21 0; #P window clipboard copycount 27; From leopold.frey at free.fr Mon Jul 23 03:11:19 2007 From: leopold.frey at free.fr (=?UTF-8?B?TMOpb3BvbGQgRnJleQ==?=) Date: Mon Jul 23 03:09:43 2007 Subject: [java-dev] Re: [sharing is ignorance] contextual menus In-Reply-To: <1b1af.46a450b1@www.cycling74.com> References: <1b1af.46a450b1@www.cycling74.com> Message-ID: <46A470B7.50205@free.fr> Hi matt, ? error: java.lang.NoClassDefFoundError: contextmenu001$1 ? error: at contextmenu001.(contextmenu001.java:19) ? error: (mxj) unable to construct instance of contextmenu001 You have to share a file called contextmenu001$1.class. There may be other contextmenu001$N too. IMHO Sharing your java file is the solution. Thanks L?o From puuukeey at comcast.net Mon Jul 23 04:30:15 2007 From: puuukeey at comcast.net (Matthew Aidekman) Date: Mon Jul 23 04:30:20 2007 Subject: [java-dev] Re: Re: [sharing is ignorance] contextual menus In-Reply-To: <46A470B7.50205@free.fr> Message-ID: <1b1b7.46a48336@www.cycling74.com> //good call my friend. attachment and included in post. sorry for the pomp and let down. import com.cycling74.max.*; import java.awt.*; import java.awt.event.*; import java.awt.MouseInfo; import javax.swing.*; import java.util.*; import javax.swing.Timer; import javax.swing.plaf.*; public class contextmenu001 extends MaxObject { Frame f; ArrayList menuItems = new ArrayList(); PointerInfo now ; int time = 3100; Action superdispose = new AbstractAction() { public void actionPerformed(ActionEvent e) { dispose(); } }; Timer a; private static final String[] INLET_ASSIST = new String[]{ "inlet 1 help" }; private static final String[] OUTLET_ASSIST = new String[]{ "outlet 1 help" }; public contextmenu001(Atom[] args) { declareInlets(new int[]{DataTypes.ALL}); declareOutlets(new int[]{DataTypes.ALL}); setInletAssist(INLET_ASSIST); setOutletAssist(OUTLET_ASSIST); a= new Timer(time, superdispose); a.setRepeats( false) ; } public void bang() { if(menuItems.size() < 1 ) { return; } if(f==null) { f = new Frame("Hello Java"); } f.removeAll(); f.setLayout(new BoxLayout(f, BoxLayout.Y_AXIS)); for(int i = 0 ; i (); } public void add(Atom[] list ) { String myString= ""; for(int i = 0 ; i References: <1b1af.46a450b1@www.cycling74.com> <46A470B7.50205@free.fr> Message-ID: Same here for me Matt - thanks in advance! Dan At 11:11 AM +0200 7/23/07, L?opold Frey wrote: >Hi matt, > >* error: java.lang.NoClassDefFoundError: contextmenu001$1 >* error: at contextmenu001.(contextmenu001.java:19) >* error: (mxj) unable to construct instance of contextmenu001 -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com From dan at defectiverecords.com Mon Jul 23 06:15:30 2007 From: dan at defectiverecords.com (Dan Nigrin) Date: Mon Jul 23 06:16:26 2007 Subject: [java-dev] Re: [sharing is ignorance] contextual menus In-Reply-To: References: <1b1af.46a450b1@www.cycling74.com> <46A470B7.50205@free.fr> Message-ID: Oops, didn't see the followup message, thanks Matt! Dan At 7:33 AM -0400 7/23/07, Dan Nigrin wrote: >Same here for me Matt - thanks in advance! -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com From leopold.frey at free.fr Mon Jul 23 06:36:15 2007 From: leopold.frey at free.fr (=?ISO-8859-15?Q?L=E9opold_Frey?=) Date: Mon Jul 23 06:34:36 2007 Subject: [java-dev] Re: Re: [sharing is ignorance] contextual menus In-Reply-To: <1b1b7.46a48336@www.cycling74.com> References: <1b1b7.46a48336@www.cycling74.com> Message-ID: <46A4A0BF.4030905@free.fr> Thanks a lot for this, works great l?o From dan at defectiverecords.com Mon Jul 23 07:03:47 2007 From: dan at defectiverecords.com (Dan Nigrin) Date: Mon Jul 23 07:05:20 2007 Subject: [java-dev] Re: Re: [sharing is ignorance] contextual menus In-Reply-To: <46A4A0BF.4030905@free.fr> References: <1b1b7.46a48336@www.cycling74.com> <46A4A0BF.4030905@free.fr> Message-ID: Yes, very nice Matt! Dan At 2:36 PM +0200 7/23/07, L?opold Frey wrote: >Thanks a lot for this, >works great > >l?o -- Dan Nigrin Defective Records 202 Hack / PC-1600 User / VSTi Host / OMS Convert / Jack OS X / Major Malfunction http://www.defectiverecords.com http://www.jackosx.com From puuukeey at comcast.net Mon Jul 23 10:09:24 2007 From: puuukeey at comcast.net (Matthew Aidekman) Date: Mon Jul 23 10:09:26 2007 Subject: [java-dev] Re: Re: Re: [sharing is ignorance] contextual menus In-Reply-To: Message-ID: <1b1d6.46a4d2b4@www.cycling74.com> more than welcome. glad to see it actually works one more than one computer. maybe I'll cross post in so the non developers can see... From jbmaxwell at btinternet.com Thu Jul 26 03:04:51 2007 From: jbmaxwell at btinternet.com (jbmaxwell) Date: Thu Jul 26 03:04:53 2007 Subject: [java-dev] Re: [sharing is ignorance] contextual menus In-Reply-To: <1b1ad.46a44e51@www.cycling74.com> Message-ID: <1b2c0.46a863b2@www.cycling74.com> ooh, that's nice! Works as expected on G5 dual 1.8, OS X 10.4.10, Max 4.6.3, Java 1.5. Great work. J. From simonadcock at yahoo.com Thu Jul 26 09:24:34 2007 From: simonadcock at yahoo.com (simon adcock) Date: Thu Jul 26 09:24:36 2007 Subject: [java-dev] ftp in mxj example? Message-ID: <1b2d9.46a8bcb2@www.cycling74.com> Hello, Just hoping somebody wouldn't mind giving me shove in the right direction in getting ftp working within mxj? thanks, Simon From maxmspjit at gmail.com Thu Jul 26 10:28:38 2007 From: maxmspjit at gmail.com (Ritchie Argue) Date: Thu Jul 26 10:28:44 2007 Subject: [java-dev] ftp in mxj example? In-Reply-To: <1b2d9.46a8bcb2@www.cycling74.com> References: <1b2d9.46a8bcb2@www.cycling74.com> Message-ID: On 07-07-26, at 0824, simon adcock wrote: > > Hello, > > Just hoping somebody wouldn't mind giving me shove in the right > direction in getting ftp working within mxj? > I used the apache jakarta commons net package to get telnet going from within MXJ. A quick glance indicates that ftp is also supported there. http://jakarta.apache.org/commons/net/ r. From myernore at yahoo.com Thu Jul 26 22:44:36 2007 From: myernore at yahoo.com (Myer) Date: Thu Jul 26 22:44:38 2007 Subject: [java-dev] Re: Embedding JRE into an application installer on Windows, how to? In-Reply-To: Message-ID: <1b31e.46a97833@www.cycling74.com> Ben, could you please forward it to me as well? It'd be a great help as this is exactly what I'm trying to do ... Thanks! Myer [myernore at yahoo] -- "To Dwell is to Garden" - Martin Heidegger From owen at owengreen.net Fri Jul 27 12:34:55 2007 From: owen at owengreen.net (Owen Green) Date: Fri Jul 27 12:35:13 2007 Subject: [java-dev] ftp in mxj example? In-Reply-To: References: <1b2d9.46a8bcb2@www.cycling74.com> Message-ID: <46AA3ACF.2030101@owengreen.net> I'd suggest that route also. There are unsupported ftp handlers from sun, but they're liable to vanish without apology. -- O Ritchie Argue wrote: > I used the apache jakarta commons net package to get telnet going from > within MXJ. A quick glance indicates that ftp is also supported there. > > http://jakarta.apache.org/commons/net/ > From jbmaxwell at btinternet.com Sat Jul 28 04:29:07 2007 From: jbmaxwell at btinternet.com (jbmaxwell) Date: Sat Jul 28 04:29:20 2007 Subject: [java-dev] Re: Embedding JRE into an application installer on Windows, how to? In-Reply-To: <4532544B.50502@bzhtec.com> Message-ID: <1b37e.46ab1a70@www.cycling74.com> Yet another user interested in embedding the jre! I'm not in any rush, but it would be nice to be able to do this at a later date. It seems as though this might be a good topic for a new article on the c74 site - no? J.