Even though JRE 8 is installed on my MAC OS Yosemite 10.10.3,while running the Android present in tools in sdk – the error – ” No Java Runtime present,requesting to install ” gets displayed in terminal- how do i solve this issue? I wanted to install Xamarin test recorder – after installing they asked me to install Android sdk SDK
How to check if only one ‘@’ symbol in email address using regex in java?
I am trying to create a regex in java to validate the email address. It should contain one uppercase one lowercase one digit only one @ symbol followed by ‘.’.So far i could only create this, scenarios like these abC.8@gmailcom this address should return false abC8@@gmail.com this also should return false But the above regex returns true for all these
Gradle – Could not target platform: ‘Java SE 8’ using tool chain: ‘JDK 7 (1.7)’
I am trying to import Gradle project in Intellij Idea with local Gradle distrib and getting stacktrace with the following message: Could not target platform: ‘Java SE 8’ using tool chain: ‘JDK 7 (1.7)’. Could anyone explain please what could be the reason? Answer Finally I imported my Gradle project. These are the steps: I switched from local Gradle distrib
OpenGTS Integration in Eclipse
OpenGTS Integration in Eclipse *Imported whole opengts code in to the eclispse workspace. *Created the four environment variables like GTS_HOME,CATALINA_HOME,ANT_HOME,JAVA_HOME as system variables. *In the next step am trying to configure the database for the opengts as they mentioned in the document. *Refer the link below “http://opengts.sourceforge.net/OpenGTS_Config.pdf”. Taking reference of above link Am trying to run the commands given in
How to output an ASCII star patterns in a table format?
I need help with my code issue. I have to write a program that displays a star pattern in a table format. I am not exactly looking for the exact code, I would like to figure it out myself, so any suggestions and tips would be greatly helped. Answer Since you said you don’t want a full solution, here are
multiple constructors for final fields in java
I have some final fields in the class like But this gives an error that final field ‘b’ might not have been initialized. So any help would be appreciated on how to handle final attributes initialization in case of multiple constructors. It works fine if I have only the second constructor. Answer You can initialize b to default false. All
Eclipse Shortcut for switching the class-windows
since 6 weeks i´m studying WI. Thats somewhere between business management and IT. We´re using eclipse and i´m looking for a shortcut that allows to switch between the class-windows like alt + tab for Windows…. windows^^. Thanks for help. Answer in tool bar go to Window>Preferences>General>key : change shortcut key as per your use and us can also fine another
Netty writeAndFlush() incomplete
My tcp client request netty server, and netty server use writeAndFlush() return 393718 bytes. But the client only receive 262142 bytes. I use “tcpdump -A” to apturing packets, less than 393718 too. So I think the properble is in netty writeAndFlush() function? Here is the code tcp server: server handler: tcp client: Answer You close the connection directly after writing,
Maven doesn’t run my testng.xml
When i’m running through testng.xml (right click on testng.xml, then run as TestNG) it works fine – 2 of the tests i have there are running, but when i’m running it from Maven (mvn test) it just perform build and doesn’t run the tests. BTW – i noticed that if i have classes with the word Test in them they
Why does IntelliJ IDEA give a warning that this file javadoc is dangling?
I’m using IntelliJ IDEA and I tried to add a Javadoc comment at the top of the file like this: But IntelliJ gives me the warning “Dangling Javadoc comment.” What makes this comment dangling? I thought because it’s tagged with @file, it should be at the start of the file. Answer Javadoc has no @file or @date tags. You should