Re: [JBookTrader] Java 7, Newbie Warnings and Updated Windows Installation Document

86 views
Skip to first unread message

Marcus Williford

unread,
Jan 7, 2013, 4:30:52 PM1/7/13
to jbook...@googlegroups.com
KJ,

I'm also new (again) to this, I guess some sort of new years resolution to pick back up projects I started then didn't really finish.

For what it is worth, I used java 6 without a problem on the latest "tip" from the repo.  Even though your eclipse is "using" Java7, you can add java6 to your system, then configure it as an alternate jdk in eclipse.  Then, you can make THIS project use Java 6 for both compile and runtime.  All of the errors I see, look like simple differences between Java 6 and Java 7, many would be expected.  I really would run what everyone else tests with, unless you have specific reasons for Java 7.

I recently used the following without any problems:
IDEA IntelliJ, OSX Mountain Lion, Java 6 (Hotspot), Heap mem 2G w/ aggressive flag. 

Marcus


On Mon, Jan 7, 2013 at 10:55 AM, KJ Hamblin <kj.ha...@gmail.com> wrote:
I've been an inactive member of JBT for a few years now, never posting or contributing anything, however Eugene's recent post about his success and the new JBT release has inspired me to move forward.  

First, I attempted to setup JBT in eclipse per the document in the Docs folder on my windows 7 machines with jdk1.7.0.  That produced 32 different warnings (see attached).  Four of those warnings have been discussed previously in this thread and Eugene's suggestion was to change the Eclipse compiler settings to also ignore "Incomplete 'switch' cases on Enum" as well as "Resource leak," provided I understood that thread correctly.  That eliminates the known 4 errors

That leaves 28 errors, all of which correspond to JComboBox being a raw type and that it should be parameterized.  I'm still not an expert in Java, but this page indicates that the WindowBuilder is not fond of the generics version of JComboBox.  Replacing JComboBox with JComboBox<String> everywhere it occurs resolves all warnings, but according to this page that will cause compiler compatibility issues with Java 6, which I think most everyone is using.  I have not tested that though.

I wanted to check to see if that is a known issue or if anyone has opinions.

Also, I updated the windows installation document to reflect JBT 8.07 using Eclipse 4.2.1 ignoring "Incomplete 'switch' cases on Enum," "Resource leak" and "Serializable class without serialVersionUID" under compiler settings.  It is attached also, let me know if there are any errors and I will gladly correct them.

Thanks for taking the time to read this!

--
You received this message because you are subscribed to the Google Groups "JBookTrader" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jbooktrader/-/5czCFlk1pK0J.
To post to this group, send email to jbook...@googlegroups.com.
To unsubscribe from this group, send email to jbooktrader...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/jbooktrader?hl=en.

Eugene Kononov

unread,
Jan 7, 2013, 6:25:57 PM1/7/13
to jbook...@googlegroups.com

That leaves 28 errors, all of which correspond to JComboBox being a raw type and that it should be parameterized.

These are warnings, not errors. However, I'll fix them in the next release. For now, they can be ignored. Thanks for reporting.

KJ Hamblin

unread,
Jan 8, 2013, 8:44:33 AM1/8/13
to jbook...@googlegroups.com
Eugene and Marcus,

Thanks for your quick replies. 


Eugene,

I apologize for my typo of the word "error," I got it right everywhere but your quote.  It doesn't help that it was one of the first words in a new paragraph, oh well.  In the mean time if there is anything I can do to help the project (documentation, etc...), please let me know.  


-Kyle J. Hamblin


On Mon, Jan 7, 2013 at 6:25 PM, Eugene Kononov <eugene....@gmail.com> wrote:

That leaves 28 errors, all of which correspond to JComboBox being a raw type and that it should be parameterized.

These are warnings, not errors. However, I'll fix them in the next release. For now, they can be ignored. Thanks for reporting.

--
You received this message because you are subscribed to the Google Groups "JBookTrader" group.

nonlinear

unread,
Jan 8, 2013, 9:57:35 PM1/8/13
to jbook...@googlegroups.com



In the mean time if there is anything I can do to help the project (documentation, etc...), please let me know.  


Thanks for the offer, Kyle. For the next JBT release, I am using the Java 1.7 feature, so that would be the minimum requirement to run JBT. Perhaps at that time you could review/edit your Eclipse setup instructions, so that we can publish them.
 

KJ Hamblin

unread,
Jan 8, 2013, 10:13:47 PM1/8/13
to jbook...@googlegroups.com
Sounds like a plan Eugene!




On Tue, Jan 8, 2013 at 9:57 PM, nonlinear <eugene....@gmail.com> wrote:



In the mean time if there is anything I can do to help the project (documentation, etc...), please let me know.  


Thanks for the offer, Kyle. For the next JBT release, I am using the Java 1.7 feature, so that would be the minimum requirement to run JBT. Perhaps at that time you could review/edit your Eclipse setup instructions, so that we can publish them.
 

--
You received this message because you are subscribed to the Google Groups "JBookTrader" group.
To view this discussion on the web visit https://groups.google.com/d/msg/jbooktrader/-/UJkAdu6q-KsJ.
Reply all
Reply to author
Forward
0 new messages