
|
When posting your question please:- Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
- Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
- Keep the subject line brief, but descriptive. eg "File Serialization problem"
- Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
- Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
- Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
- If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode HTML tags when pasting" checkbox before pasting anything inside the PRE block, and make sure "Ignore HTML tags in this message" check box is unchecked.
- Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
- Please do not post links to your question in one forum from another, unrelated forum (such as the lounge). It will be deleted.
- Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
- If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
- No advertising or soliciting.
- We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
When answering a question please:
- Read the question carefully
- Understand that English isn't everyone's first language so be lenient of bad spelling and grammar
- If a question is poorly phrased then either ask for clarification, ignore it, or mark it down. Insults are not welcome
- If the question is inappropriate then click the 'vote to remove message' button
Insults, slap-downs and sarcasm aren't welcome. Let's work to help developers, not make them feel stupid.
cheers,
Chris Maunder
The Code Project Co-fou
|
|
|
|

|
Hi could any1 resolve me this issue. We are making a final year project to develop a system security application. 90% coding is done and now we need to get access of folders which means to link with dll file. So could any1 guide me on how to link java code to dll file. I'll be really kind to u.
|
|
|
|

|
Hari Kiran B M wrote: how to link java code to dll file. What exactly are you trying to do? If this is a C/C++ dll then you (probably) need to look at using the Java Native Interface[^].
|
|
|
|

|
This is what my all about. I need to encrypt folders ex. u've an idea of how the lock folder using lock folder software. In same way our project works but we'r trying to secure entire system. So do u've any idea on how to link our java program to windows folders. few told we need to access dll file. But our code is in java. I've become numb not getting anything. Could u pls help me.
|
|
|
|

|
You cannot encrypt folders at the application level, which is where Java apps run. This sort of activity has to be done at the driver/filter level.
|
|
|
|

|
ya got u. But we've written code nd we've given some input to check whether security is working. The code is working perfectly using rijndael algorithm oly thing is we need to link that encryption and decryption algorithm to windows folder.. Can u suggest me?
|
|
|
|

|
Hari Kiran B M wrote: Can u suggest me? Please read my previous answer. You cannot do this at the application level, you can only do it by adding a filter driver to the filesystem. And that can only be done in a native language such as C/C++ or Assembler.
|
|
|
|

|
how does java native interface works any idea
|
|
|
|

|
You need to go and read the documentation.
|
|
|
|

|
Presumably as a school project it is sufficient to encrypt files within a folder not the entire folder.
You can control this via java via the following process.
- FIND a command line utility (run via the console window NOT a UI/GUI app).
- Learn how to use that tool, by figuring out how to encrypt/decrypt and pay attention to the OUTPUT.
- After the above two steps then learn how to use Java java.lang.Process or Runtime.exec(). They are basically the same thing. Using these will REQUIRE using threads. If you are not using threads then you are not going to succeed.
- After you learn java.lang.Process then you can use it to run the tool above within your java application.
|
|
|
|