As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am writing code that often has to work in restricted environment. I sometimes code at home, where it works nicely and the moment I put it to test at work, McAfee or some other firewall blocks it.
Sometimes it is not possible to disable such protection.
I need a test suite for my home development environment where I can simulate all these restrictions without having to install all of them myself (for instance it is my experience that it is very hard/impossible to clean all traces of mcafee once you have installed it). I also need to simulate proxy servers.
I am writing code in Java if it helps.
[EDIT: so some Java library for this would be great]
You could use VMware (or VirtualBox) with different test-setups.
Try node.js. Also have a look at a sample proxy implementation
Related
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am building a mid-sized standalone console based java application and I must log various events that can take place. I am not sure about which API to use. I have looked upon Logback Project and log4j. I am concerned if these are the right one, since both of the seem to have extensive uses in the web application projects. Please help me decide if I am better using the default java.util.logging API or should I use another frameworks; if so which one.
Thanks!
I recommend slf4j.(it's written by the same guy who did log4j) You can read more from here
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are the cross-platform development principles in java? What problems are waiting me? I want to create cross-platform file manager (java se).
Technically Java only runs on one platform, the JVM. What you may have in mind is a cross operating system application. The most basic challenge is handling / and \ correctly.
However, the biggest problem you are likely to face is in the GUI providing a windows friendly interface on windows, mac friendly on mac and linux friendly on linux. This is an interface design issue rather than a coding issue.
You can get lots of articles on platform independency of java. Check this Oracle Documentiation on how java works.
You can go through this post how-is-java-platform-independent also.
So the key thing to keep in mind avoid doing platform specific things in your javacode
Do not execute OS Specific commands or scripts(you may be tempted to do that for things like checking disk space, but java has platform idependant implementation for that)
Avoid direclty depending OS variables(gettting home dir etc)
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm trying to create an email application which is depending upon the same function of our android mobile's default email application. How can I get that default email functions source code?
I think what you are looking for is K-9 mail. It looks like you're in luck. it's open source on github: https://github.com/k9mail/k-9
For sake of completeness, the source of the default Email application is available at
http://android.git.kernel.org/?p=platform/packages/apps/Email.git;a=summary.
EDIT: Palaniraja suggests the following alternate link, however it does not support the source browsing capability of the discontinued original repository.
https://android.googlesource.com/platform/packages/apps/Email/
However, it will (or at least used to) require a fair amount of adaptation before it can be built with the SDK, as it was originally designed to be built with the platform build system before decisions about APIs available under the SDK were finalized. Unless that has changed, you may be better off working with some other codebase that someone has already adapted for SDK use.
maybe this will help you: http://java.sun.com/developer/onlineTraining/JavaMail/contents.html
i've used that for my own gmail client app.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I would like to know which Java native compilers can be recommended to compile Java code to Windows and Mac OS X binaries.
Maybe someone knows which compilers have been used to create the Eclipse binaries. Those shouldn't be a wrong choice.
See here... But in short, there is no good solution that I would really recommend.
Eclipse uses as User Interface SWT, which uses the native plattform user Interface:
On Windows it looks like Windows, on Mac like Mac, etc.
Its available for the most popular Plattforms, search for SWT for more info.
So that is probably what you saw, or more are feeling when you work with eclipse.
Its not only the exe extension.
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I'm interested in technologies(solutions) that permits Java and .NET interoperate. I have tried the following and it works but I would like to know if there are other solutions:
Sockets
Web Services (Metro)
CORBA (IIOP.NET)
Messaging (QPid)
IKVM
Does anyone know other technologies(solutions) that enable Java and .NET interoperate or best practices for Java and .NET interoperability?
We use Apache ActiveMQ
I've used j-Integra's stuff before on a few projects that served me well
I have been working with JNBridge tools for in-process one-way JAVA Swing UI calling .NET 4.0 back end.
The whole thing performs well but does require discipline in its management. A license fee is required, so is really only a good choice when the 2 languages have to be used together.
Check out JNBridge.
I haven't used it, but I have heard this works: http://jnbridge.com/