This week's book giveaway is in the iOS forum.
We're giving away four copies of Classic Computer Science Problems in Swift and have David Kopec on-line!
See this thread for details.
Win a copy of Classic Computer Science Problems in Swift this week in the iOS forum!

Vijitha Kumara

Bartender
+ Follow
since Mar 24, 2008
Vijitha likes ...
Chrome Fedora Hibernate
Cows and Likes
Cows
Total received
47
In last 30 days
0
Total given
30
Likes
Total received
92
Received in last 30 days
1
Total given
158
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Rancher Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vijitha Kumara

Did you try with plugins whether that would help?

Even without it did you check that when you build the project it has the source file compiled to the configured target dir?
2 months ago
Congrats to the winners and thanks Josh for hanging out here!
2 months ago
Hi Josh,

I just saw in other thread the book does not cover modules, but what's your thoughts on the usage and patterns/practices for modular Java based applications. Any plans to update the topic in the book?
2 months ago
You may have to check with JBoss configs and/or JRE path what is wrong with your key store etc... A similar one here.
2 months ago
The more you write code you'll have more confidence. Also it might help if you could read/see how other experience developers solved certain problems.

And if you write code then don't rely on IDEs much (at least at the beginning) as you may not know what is going on underneath. So try to use the command line as much as possible. Once you are confident you may use IDEs.
2 months ago
Welcome back Josh! Great to have you here.
2 months ago
T h e . C o d e R a n c h . J o u r n a l - March . 2 0 1 8 . E d i t i o n


Howdy from all the CodeRanch staff, and welcome to the March 2018 edition of the CodeRanch Journal.


I n t e r e s t i n g . C o d e R a n c h . F o r u m . P o s t s


  • A typical example on how a novice programmer gets support from fellow ranchers on his project
  • Discussion on Functional vs Procedural with Lambdas
  • A fellow rancher learns how to setup project structure for testing
  • Interesting discussion on Spring’s bean auto-wiring



  • B l o g . E n t r i e s . F r o m . S t a f f


  • Junilu blogs about “How Schools are Failing Novice Programmers”
  • Junilu’s blog on “Pragmatic Thinking & Learning”
  • Jeanne blogs her experience with Oracle Code NYC 2018
  • Again, Junilu’s take on “The Cyclical Nature of Interconnected Things”



  • B o o k . P r o m o t i o n s


    There's a book (or software) promotion just about every week at CodeRanch. Just ask a question in the appropriate forum and you're eligible to win a copy of the book (or license).

    Check the book promotions schedule at http://www.coderanch.com/t/660305/Wiki/Book-Promotions-Schedule.

    Some upcoming promotions are:

  • Effective Java (Third Edition) - Josh Bloch
  • Murach's HTML5 and CSS3 - Anne Boehm & Zak Ruvalcaba
  • Java by Comparison (e-book) - Simon Harrer, Jörg Lenhard, Linus Dietz
  • Securing DevOps - Julien Vehent

  • And a big Congratulations to our past Winners


    B o o k s . A n d . R e v i e w s


    We have several forums dedicated to talk about books. Here are some interesting reviews and recommendations from the CodeRanch staff in our Book Reviews forum

  • Murach's PHP and MySQL (3rd Edition) by Joel Murach & Ray Harris


  • Please check out the latest reviews (also available on our book review grid)


    T h e . M o o s e . o n . S o c i a l


    The CodeRanch announces latest news/developments frequently on our social media outlets. You can find us at:

  • Twitter
  • Google+
  • Facebook


  • Follow / Like us so you don't miss a thing.


    A b o u t . T h e . E d i t o r


    Vijitha Kumara has been a member of CodeRanch since 2008 and a Moderator since 2011.


    S u g g e s t i o n s / F e e d b a c k


    If you have any feedback on this month's journal then feel free to create a topic in our Ranch-Office


    J o u r n a l . A r c h i v e


    Our previously published journals are available online at Java-Ranch-Journal
    2 months ago
    T h e . C o d e R a n c h . J o u r n a l - March . 2 0 1 8 . E d i t i o n


    Howdy from all the CodeRanch staff, and welcome to the March 2018 edition of the CodeRanch Journal.


    I n t e r e s t i n g . C o d e R a n c h . F o r u m . P o s t s


  • A typical example on how a novice programmer gets support from fellow ranchers on his project
  • Discussion on Functional vs Procedural with Lambdas
  • A fellow rancher learns how to setup project structure for testing
  • Interesting discussion on Spring’s bean auto-wiring



  • B l o g . E n t r i e s . F r o m . S t a f f


  • Junilu blogs about “How Schools are Failing Novice Programmers”
  • Junilu’s blog on “Pragmatic Thinking & Learning”
  • Jeanne blogs her experience with Oracle Code NYC 2018
  • Again, Junilu’s take on “The Cyclical Nature of Interconnected Things”



  • B o o k . P r o m o t i o n s


    There's a book (or software) promotion just about every week at CodeRanch. Just ask a question in the appropriate forum and you're eligible to win a copy of the book (or license).

    Check the book promotions schedule at http://www.coderanch.com/t/660305/Wiki/Book-Promotions-Schedule.

    Some upcoming promotions are:

  • Effective Java (Third Edition) - Josh Bloch
  • Murach's HTML5 and CSS3 - Anne Boehm & Zak Ruvalcaba
  • Java by Comparison (e-book) - Simon Harrer, Jörg Lenhard, Linus Dietz
  • Securing DevOps - Julien Vehent

  • And a big Congratulations to our past Winners


    B o o k s . A n d . R e v i e w s


    We have several forums dedicated to talk about books. Here are some interesting reviews and recommendations from the CodeRanch staff in our Book Reviews forum

  • Murach's PHP and MySQL (3rd Edition) by Joel Murach & Ray Harris


  • Please check out the latest reviews (also available on our book review grid)


    T h e . M o o s e . o n . S o c i a l


    The CodeRanch announces latest news/developments frequently on our social media outlets. You can find us at:

  • Twitter
  • Google+
  • Facebook


  • Follow / Like us so you don't miss a thing.


    A b o u t . T h e . E d i t o r


    Vijitha Kumara has been a member of CodeRanch since 2008 and a Moderator since 2011.


    S u g g e s t i o n s / F e e d b a c k


    If you have any feedback on this month's journal then feel free to create a topic in our Ranch-Office


    J o u r n a l . A r c h i v e


    Our previously published journals are available online at Java-Ranch-Journal
    2 months ago
    You seem to have some conflicts in your directories, why you have jess.jar along with your class/source files as in above attachment, but you refer that from another location?

    You may try compiling with -d option and point that to the -cp when running so that your class/jar files are separated from source (though this is not a mandatory to run, but just to make sure...)
    3 months ago
    You could consider using some kind of a data structure (Queue?) inside the method getProductId method but outside the inner class, and add the data you get from the callback to it, then use some polling (or similar) to send the data from the method.

    This is just an example way of doing that, but need to be analysed and properly designed depending on your application flow/model.
    Your -cp entries should be separated by ";" not ":" in Windows.
    3 months ago
    I can't verify this with IntelliJ now, but you can try creating a maven project via command line (mvn quickstart), and try importing that in to the IDE and see whether any errors are there.
    3 months ago
    Not sure what you mean by moving Classes in to different directories, but you shouldn't make methods private/public just because you need to run tests.

    And one approach to manage your tests would be put the test Classes in a similar package as with the source but under the test directory.
    3 months ago
    Where is your build (compiled) class files are located? You may have to run the command from the top level of the directory hierarchy and set the "classpath" to the appropriate path(s) to find the dependent classes. See how you can set the classpath here
    3 months ago