greptilian logo

IRC log for #friendlyjava, 2019-11-17

##friendlyjava on freenode

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

All times shown according to UTC.

Time S Nick Message
01:35 bec joined ##friendlyjava
01:35 bec left ##friendlyjava
05:41 mr_lou joined ##friendlyjava
07:30 mr_lou Morning
07:31 mr_lou So... if I have a config file with lots of command line arguments, how do I use that with my execute command?
07:33 * mr_lou is trying to hack his Netgear NeoTV 550 device - skip the menu system and just play a blu-ray after boot.
07:33 mr_lou It has cvm and some java.cfg file with lots of -Dxxxxx parameters.
08:13 aditsu execute command?
08:21 mr_lou Well...
08:22 mr_lou cvm -cp bdj.jar:myXlet.jar my.class configfilehere.cfg?
08:23 aditsu is cvm a jvm?
08:23 mr_lou yes.
08:23 mr_lou For embedded devices
08:23 mr_lou I've also seen it on old windows ce phones.
08:23 rebecca joined ##friendlyjava
08:23 mr_lou Hello rebecca
08:24 mr_lou aditsu, And it seems to be the jvm used in this old Netgear device too.
08:24 mr_lou So I'm trying to start BD-J xlets manually without luck'
08:24 aditsu mr_lou: well, if you run it like that, it will just pass "configfilehere.cfg" as an argument to my.main
08:25 mr_lou ye... so...
08:25 mr_lou Probably not the way.
08:25 rebecca hey mr_lou
08:26 aditsu if that file contains some arguments for cvm, I guess you need to parse it and build the command
08:26 mr_lou aditsu, How about:  cvm << `echo java.cfg`  ? :->
08:26 aditsu don't really know what the file looks like
08:26 mr_lou Lots of -Dxxxx parameters.
08:27 aditsu on one line? multiple lines? any comments? property style?
08:27 mr_lou Multiple lines. Lots and lots of lines
08:28 aditsu and you want to build the command from the shell? that's not a java question then :p
08:29 mr_lou I wanna launch a BD-J Xlet from command yes.
08:29 mr_lou Using CVM
08:29 mr_lou It's a settop box.
08:29 mr_lou Or... media box or some sort.
08:31 mr_lou -Djava.library.path is apparently to support JNI libs.
08:31 mr_lou *support = supply
08:32 mr_lou JNI is yet another thing I have yet to try out.
08:33 aditsu does cvm has any option to use a config file?
08:33 aditsu have*
08:35 aditsu I'm not very skilled in shell stuff, but I can try to find out how to do it
08:36 mr_lou I googled. Didn't find anything about it.
08:37 aditsu https://stackoverflow.com/questions/4227994/how-do-i-use-the-lines-of-a-file-as-arguments-of-a-command
08:38 rebecca I'm having trouble getting SWT working in eclipse. when i try to follow a tutorial things keep going south: eg: https://i.imgur.com/u7y8ZUA.png https://i.imgur.com/7cYHily.png
08:38 rebecca i'm doing something wrong but i'm kinda lost
08:39 aditsu mr_lou: so.. cvm "$(< foo.cfg)" -cp blahblah
08:39 mr_lou aditsu, You're a genius
08:40 mr_lou ...or at least, a better googler than me
08:40 aditsu haha
08:40 aditsu rebecca: I haven't done much with SWT, but I'll take a look
08:41 aditsu rebecca: what tutorial did you use?
08:41 rebecca thank you. i'm very much a noob so pebcak
08:42 aditsu also, do you really need SWT? it's not commonly used
08:43 rebecca maybe not
08:43 rebecca i have some things i want to explore programming wise but they are quite visual
08:44 rebecca something like WindowBuilder / SWT looked helpful but i'm not set on them
08:44 aditsu for GUI stuff you have Swing and JavaFX, Swing is mature and available in every desktop jvm, JavaFX is newer and in many cases needs to be set up separately
08:44 rebecca ah
08:44 rebecca ok
08:45 rebecca i'll give Swing a try and let you know how i go then :D
08:46 aditsu those are GUI frameworks; as for GUI building tools, I'm not really sure but I think eclipse has something for Swing too
08:46 aditsu ah, "WindowBuilder is composed of SWT Designer and Swing Designer"
08:47 rebecca ah
08:49 aditsu you can check out oracle's Swing tutorial
08:51 rebecca okay, thanks for the guidance
08:52 rebecca oh... does it matter if i'm not using oracle java?
08:52 rebecca i was hoping to use openjdk
08:52 aditsu not a problem
08:52 rebecca are they compatible>?
08:52 rebecca ah, cool, thanks
10:26 rebecca aditsu: what swing tutorial should i follow?
10:28 aditsu rebecca: I suggested oracle's, but if it doesn't seem very helpful, you can try other ones
10:29 aditsu and feel free to ask questions if you get stuck
10:29 * mr_lou can't get anything running on the Netgear NTV550. :-/
10:29 mr_lou Guess I'll never become a hacker.
10:31 aditsu isn't there some opensource alternative firmware for it or something?
10:31 rebecca oracles one (at least the one i found) doesn't cover how to configure eclipse
10:31 rebecca which is really where i'm lost
10:32 aditsu well, configuring eclipse is not really part of learning Swing
10:33 aditsu maybe you want a WindowBuilder tutorial?
10:34 rebecca maybe
10:35 aditsu I found this video, maybe it helps: https://youtu.be/rgkWfz7Vy40
10:36 mr_lou aditsu, Trying some custom firmware would be nice, but I can't find any. I did find some source for the officiel firmware it seems, but that's not helping me much either.
10:38 rebecca thanks aditsu :D
10:39 aditsu btw, you can also write Swing applications just by writing code, without any visual editor
10:41 rebecca okay
10:41 rebecca when i actually have a GUI helloworld working i'll look into that
10:46 aditsu you can get that from the oracle tutorial
10:47 rebecca when i'm creating a java project my eclipse asks a question i don't see in the tutorials 'create module-info.java'.. giving me the option of Don't Create or Create... should i be creating it?
10:49 aditsu hmm, sounds like a java 9+ thing, I'm not very familiar with it
10:49 rebecca ok
10:49 aditsu I guess I wouldn't create it, but it shouldn't matter much
10:49 rebecca okay
10:52 rebecca thanks very much aditsu, i have progress!
10:54 aditsu great
10:54 rebecca thanks for being patient with a noob. this channel lives up to it's name :D
10:56 aditsu that's what it's for :)
11:00 rebecca hmmm, i think something is wrong with my SWT components install. i could create a Swing application window (via: import java.awt.EventQueue;) but when i create the SWT Application Window it doesn't recognise the import
11:00 aditsu don't bother with SWT
11:00 rebecca sorry: the  "import org.eclipse.swt.SWT;" as valid
11:00 rebecca oh, ok
11:03 rebecca this tutorial looks like a good place to burrow in: https://www.youtube.com/watch?v=WRwPVZ4jmNY
11:03 rebecca for me
11:05 aditsu whoa, over 5 hours
11:06 aditsu btw, stay away from applets
11:06 rebecca okay... why?
11:06 aditsu they are practically dead
11:06 rebecca ah
11:06 aditsu 99% not supported anymore
11:06 rebecca ah, ok :)
11:09 rebecca can i achieve drag and drop elements with swing?
11:09 aditsu yes you can
11:09 rebecca cool
11:10 rebecca i'm making a chemistry simulator for a voxel world
11:11 rebecca not making the voxel world here, but creating a sandbox to explore/tweak the 2d baed chemistry mechanics
11:12 rebecca i have some experience modding existing minecraft code but ground up is new for me. so starting simple
11:14 aditsu do you want to make it really 3d?
11:14 aditsu or just a simple projection?
11:14 rebecca eventually yes
11:15 rebecca but for now, i just want to have 2d interactive GUI
11:15 aditsu aha
11:17 rebecca I have a world in mind where each voxel cube represents a molecule. The bonds between the atoms of this molecule all happen in 2d. I have a good idea for the kind of rules i want, but i need an interface where i can drag and drop atoms and fine tune things
13:05 pdurbin rebecca: cool that you're working on GUI stuff. I'm trying to learn front end stuff better. Playing with Bootstrap 4.
15:18 enrio joined ##friendlyjava

| Channels | #friendlyjava index | Today | | Search | Google Search | Plain-Text | plain, newest first | summary

##friendlyjava on freenode